Examples
Default (Single, Collapsible)
Controlled Mode
All States (Matrix)
Header Variants (Matrix)
Props
Accordion
Root container for an accordion interface. Manages the expand/collapse state and coordinatesAccordionItem, AccordionTrigger, and AccordionContent.
Built on Radix UI Accordion.
boolean
AccordionContent
Renders the collapsible content panel for anAccordionItem. Animates open and closed.
boolean
boolean
Remove the default inner padding (
px-3 pb-3). Useful when you need custom content layout.AccordionItem
A single collapsible section within anAccordion. Contains an AccordionTrigger and AccordionContent.
boolean
AccordionTrigger
An interactive button that toggles the visibility of its associatedAccordionContent panel.
boolean
ReactNode
Leading avatar shown before the title, for headers representing a person or account. Pass an
Avatar sized to 24.ReactNode
Secondary line rendered under the title, for extra context.
ReactNode
Trailing indicator icon. Defaults to
ChevronDownIcon (rotates when open). Pass null to suppress it.ReactNode
Leading icon shown before the title (sized to 16px).
Exported types
Also exported from@fanvue/ui: AccordionContentProps, AccordionItemProps, AccordionProps, AccordionTriggerProps.
Setup: Installation · Theming