Class: Shadcn::ItemContentComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- Shadcn::ItemContentComponent
- Defined in:
- app/components/shadcn/item_content_component.rb
Overview
Item Content component - wrapper for title and description
Constant Summary collapse
- BASE_CLASSES =
"flex-1 min-w-0 space-y-1"
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
18 19 20 21 22 |
# File 'app/components/shadcn/item_content_component.rb', line 18 def call content_tag(:div, class: merge_classes(BASE_CLASSES), **.merge(build_data)) do safe_join([title, description, content].compact) end end |