Class: Shadcn::EmptyHeaderComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- Shadcn::EmptyHeaderComponent
- Defined in:
- app/components/shadcn/empty_header_component.rb
Overview
Empty Header component - wraps media, title, and description
Constant Summary collapse
- BASE_CLASSES =
"flex flex-col items-center gap-2"
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
23 24 25 26 27 |
# File 'app/components/shadcn/empty_header_component.rb', line 23 def call content_tag(:div, class: merge_classes(BASE_CLASSES), **.merge(build_data)) do safe_join([media, title, description, content].compact) end end |