Accordion & Collapsible

Collapsible wraps one trigger and one panel; Accordion composes several items with shared keyboard navigation (single / multiple, optional collapsible). Triggers show an animated chevron on the right by default — override with the chevron prop; panel height and chevron share motionDurationMs. Use variant and size on Accordion.Root for chrome and density. Reference — header Documentation → Accordion.

Single-row previews include collapsible (Accordion.Root collapsible). Click the open header again to collapse — that shows the height/chevron animation so you can compare motion speed below.

Examples: Collapsible

Examples: Accordion — single

Only one section stays open.

Examples: Accordion — collapsible single

Click again to close — collapsible on single mode.

Examples: Accordion — multiple

Open Alpha and Beta at the same time.

Examples: chevron — default, hidden, custom

Rotates smoothly when open.

Examples: list inside accordion

  • Pack items
  • Print label
  • Hand off to carrier

Examples: nested accordion

Detail for B.

Examples: variants (bordered, flush, soft, elevated)

variant="bordered" (default)

Bordered chrome.

variant="flush"

No outer border.

variant="soft"

Soft tinted shell.

variant="elevated"

Card shadow.

Examples: sizes (sm, md, lg)

size="sm"

size="md"

size="lg"

Examples: motion speed (motionDurationMs)

motionDurationMs={90}

motionDurationMs={280}

motionDurationMs={600}

Examples: on tinted / dark background

Elevated accordion on a dark band

Panels stay legible on tinted layouts.

Markdown reference — header Documentation → Accordion.