Class: Shadcn::TableHeadComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- Shadcn::TableHeadComponent
- Defined in:
- app/components/shadcn/table_head_component.rb
Overview
Table Head component
Constant Summary collapse
- BASE_CLASSES =
"h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]"
Instance Attribute Summary
Attributes inherited from BaseComponent
#class_name, #data, #html_options
Instance Method Summary collapse
Methods inherited from BaseComponent
Methods included from Rails::Helpers::ClassNameHelper
Constructor Details
This class inherits a constructor from Shadcn::BaseComponent
Instance Method Details
#call ⇒ Object
8 9 10 |
# File 'app/components/shadcn/table_head_component.rb', line 8 def call content_tag(:th, content, class: merge_classes(BASE_CLASSES), **) end |