Class: Shadcn::AccordionContentComponent

Inherits:
BaseComponent
  • Object
show all
Defined in:
app/components/shadcn/accordion_content_component.rb

Overview

Accordion Content component

Constant Summary collapse

BASE_CLASSES =
"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down"
INNER_CLASSES =
"pb-4 pt-0"

Instance Attribute Summary

Attributes inherited from BaseComponent

#class_name, #data, #html_options

Instance Method Summary collapse

Methods inherited from BaseComponent

#content, #initialize

Methods included from Rails::Helpers::ClassNameHelper

#cn

Constructor Details

This class inherits a constructor from Shadcn::BaseComponent

Instance Method Details

#callObject



9
10
11
# File 'app/components/shadcn/accordion_content_component.rb', line 9

def call
  (:div, inner_content, content_attributes)
end