Class: ShadcnPhlexcomponents::AccordionContent
- Defined in:
- lib/shadcn_phlexcomponents/components/accordion.rb
Constant Summary
Constants inherited from Base
Base::SANITIZER_ALLOWED_ATTRIBUTES, Base::SANITIZER_ALLOWED_TAGS, Base::TAILWIND_MERGER
Instance Method Summary collapse
-
#initialize(aria_id: :nil, **attributes) ⇒ AccordionContent
constructor
A new instance of AccordionContent.
- #view_template ⇒ Object
Methods inherited from Base
#before_template, #convert_collection_hash_to_struct, #default_attributes, #find_as_child, #icon, #item_disabled?, #merge_default_attributes, #merged_as_child_attributes, #nokogiri_attributes_to_hash, #overlay, #sanitize_as_child
Constructor Details
#initialize(aria_id: :nil, **attributes) ⇒ AccordionContent
Returns a new instance of AccordionContent.
128 129 130 131 |
# File 'lib/shadcn_phlexcomponents/components/accordion.rb', line 128 def initialize(aria_id: :nil, **attributes) @aria_id = aria_id super(**attributes) end |
Instance Method Details
#view_template ⇒ Object
133 134 135 136 137 |
# File 'lib/shadcn_phlexcomponents/components/accordion.rb', line 133 def view_template(&) AccordionContentContainer(aria_id: @aria_id) do div(**@attributes, &) end end |