fndn/ui

Components

Accordion

Beta

A stack of sections that open and close, one at a time or several.

Details

A stack of disclosures where the rows know about each other: one open at a time (or several with multiple), arrow keys move between the headers. Each item is the collapsible's row (44px trigger, the right caret that turns down, the same reveal), with a hairline between items; plain on the page or in one card. Behaviour and ARIA from the Zag accordion machine through Ark UI.

Behaviour from Ark UI, the accordion machine of Zag.