Installation
npx shadcn@latest add @iconiq/accordionProps
AccordionItem
3 props
Each row is described by a simple object and rendered as a single-expand accordion item.
id
stringRequired
Stable key used for React rendering, internal open-state comparison, and the generated aria-controls id.
title
stringRequired
Text shown in the trigger row.
content
stringRequired
Body copy shown inside the open panel with a horizontal masked wipe and a soft lift into place.
Accordion
2 props
Stateful accordion component with one internal openId value and no controlled API.
items
AccordionItem[]Required
Rows to render in order.
className
stringMerged onto the max-w-2xl root wrapper so you can stretch or reposition the accordion in your layout.
Notes
Clicking an already open row closes it again because toggle compares against the current openId.
There is no prop for default open, controlled open, or multiple-open behavior in this implementation.