Class: Shadcn::DrawerHeaderComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- Shadcn::DrawerHeaderComponent
- Defined in:
- app/components/shadcn/drawer_header_component.rb
Overview
Drawer Header component
Constant Summary collapse
- BASE_CLASSES =
"grid gap-1.5 p-4 text-center sm:text-left"
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
15 16 17 |
# File 'app/components/shadcn/drawer_header_component.rb', line 15 def call content_tag(:div, safe_join([title, description, content].compact), class: merge_classes(BASE_CLASSES)) end |