Accordion
View source codeAccordion
- children
ReactNode
The content of the Accordion, should be AccordionItem(s)
- className
string
className for the element
AccordionItem
- children
ReactNode
The content of the AccordionItem
- renderHeader
() => ReactNode
Function to render the item's header
- className
string
className for the element
- noAnimation
boolean
Whether the AccordionItem should have opening and closing animation. Has no effect when prefers-reduced-motion is set
Default: false - onToggle
(isOpen: boolean) => void
Handler that is called when the AccordionItem is toggle
- open
boolean
Whether the AccordionItem should be open
Default: false