Class: Shadcn::AccordionItemComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- Shadcn::AccordionItemComponent
- Defined in:
- app/components/shadcn/accordion_item_component.rb
Overview
Accordion Item component
Constant Summary collapse
- BASE_CLASSES =
"border-b"
Instance Attribute Summary
Attributes inherited from BaseComponent
#class_name, #data, #html_options
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(value:, **options) ⇒ AccordionItemComponent
constructor
A new instance of AccordionItemComponent.
Methods inherited from BaseComponent
Methods included from Rails::Helpers::ClassNameHelper
Constructor Details
#initialize(value:, **options) ⇒ AccordionItemComponent
Returns a new instance of AccordionItemComponent.
16 17 18 19 |
# File 'app/components/shadcn/accordion_item_component.rb', line 16 def initialize(value:, **) super(**) @value = value end |
Instance Method Details
#call ⇒ Object
21 22 23 |
# File 'app/components/shadcn/accordion_item_component.rb', line 21 def call content_tag(:div, item_content, item_attributes) end |