ortaui
  1. Components
  2. Data display

Accordion

Panels animate their height through Base UI's --accordion-panel-height over 200ms ease-out-soft; the chevron turns 180 degrees over 250ms.

Installation#

npx shadcn add @ortaui/accordion

Examples#

Single#

Yes. It follows the WAI-ARIA accordion pattern on Base UI.

Multiple#

Stays open while others open.

Also open.

API reference#

PropTypeDefaultDescription
value / defaultValuestring[]-On Accordion. Open item values.
multiplebooleanfalseOn Accordion. Allow several open items.
valuestring-On AccordionItem.