ELFBAR

Accordion

Collapsible content panels supporting single/multiple expand modes, with default, bordered, and separated visual variants.

Accordion

Collapsible content panels built on Radix UI Accordion. Supports single (one open at a time) and multiple (multiple open simultaneously) modes, with three visual variants.

Variants

variantDescription
defaultBottom divider line, no outer border
borderedFull outer border + inner dividers
separatedEach item is an independent card with spacing

Accordion Props

PropTypeDefaultDescription
type"single" | "multiple""single"Expand mode
variant"default" | "bordered" | "separated""default"Visual variant
defaultValuestringDefault expanded item
collapsiblebooleantrueWhether all items can be collapsed in single mode

Accessibility

  • Radix UI natively implements role="button", aria-expanded, aria-controls
  • Keyboard: Enter/Space to toggle, Tab to navigate between triggers