Accordion
Collapsible panels with spring-eased height animation and a rotating chevron. Single-open by default; pass multiple to allow several panels open at once.
Installation
npx stepwise-ui add accordion
Default
Multiple open
Props - Accordion
PropTypeDescription
itemsAccordionItem[]Array of panel definitions.
multiplebooleanAllow multiple panels open simultaneously. Default false.
defaultOpenstring | string[]Item id(s) open on first render. An array is only honoured with multiple.
Props - AccordionItem
PropTypeDescription
idstringUnique key for this panel.
titlestringHeader text.
contentReactNodeBody content, revealed on open.