Installation
npx shadcn@latest add @iconiq/r-accordionQuiet variant
Use variant="quiet" for the lighter inline disclosure style while keeping the same compound Accordion API.
Props
AccordionItem
Groups one trigger and one content panel under the value used for open-state tracking.
valuestringRequired
childrenReactNodeRequired
classNamestringAccordionTrigger
Renders the clickable row label with the active variant's indicator treatment.
childrenReactNodeRequired
classNamestringAccordionContent
Renders the animated panel body for the active item and keeps rich text styling intact.
childrenReactNodeRequired
classNamestringAccordion
Provider-switchable accordion surface with the same exported API regardless of whether you install the Base UI or Radix UI registry entry.
childrenReactNodeRequired
defaultValuestring[]valuestring[]onValueChange(value: string[]) => voidclassNamestringmultiplebooleanDefault false
variant"default" | "quiet"Default "default"
Current install target: Radix UI.
Dependencies declared by this registry entry: @radix-ui/react-accordion, motion, lucide-react.
The old items array shortcut still works, but the documented API now mirrors the shadcn-style compound parts.
Installs the Radix accordion primitive under the same compound Accordion API.
Uses the existing Motion + Radix content choreography with animated height, wipe, and copy transitions.
The generated registry file is /r/r-accordion.json.