Skip to content
kapable

Accordion

Actions · 4 exports · v0.1.0 · showcase

Coordinated disclosure family with single or multiple open-item behavior.

Browse 72 component families

Accordion renders open panel content during SSR, but coordinated disclosure behavior requires the client runtime. This server-rendered page does not imitate client behavior. Open the live playground.

Usage

Accordion usage
<Accordion defaultValue="tokens"><AccordionItem value="tokens" title="What ships?">Details</AccordionItem></Accordion>

API

Accordion API

AccordionProps

Accordion props
proptypenotes
type?'single' | 'multiple''single' (default): one item open at a time. 'multiple': independent items.
defaultValue?string | string[]Item value(s) open on first render — a string for single, string[] for multiple.
collapsible?booleanSingle mode: allow closing the open item (default true — a set you cannot fully close is a trap).
disabled?booleanDisables every item.
children?RemixNodeAccordionItem children.
mix?MixInput

AccordionItemProps

AccordionItem props
proptypenotes
valuestringIdentity within the set (matches defaultValue).
titleRemixNodeTrigger row content.
disabled?boolean
heading?'h2' | 'h3' | 'h4'Heading element wrapping the trigger (default 'h3'). Match your outline — items directly under the page h1 should be 'h2'.
children?RemixNodePanel content.
mix?MixInput

More in Actions

More in Actions