fndn/ui

Components

Collapsible

Beta

A button that shows or hides a region under it.

Details

A button that shows or hides a region under it: details, advanced settings, a log. A disclosure: a trigger (a real button with any content) and a region that reveals under it, pushing the rows below. One caret convention: a right caret that turns down, mirrored right-to-left. Three trigger shapes cover the system's disclosures: a whole row (task rows), an inline header on the text line ("Thought for 12s") and a section header (sidebar "Chats"). Behaviour and ARIA come from the Zag collapsible machine, through Ark UI in React, Vue and Svelte. This is the only place the reveal recipe lives.

Behaviour from Ark UI, the collapsible machine of Zag.