sheengemologic ui
All components

Accordion

Coordinates expansion and keyboard navigation for related disclosure sections.@gemologic/sheen · navigation

Playground

This example has no scalar controls. Its validated source remains interactive below.

<Accordion><AccordionItem value="general" label="General"><Input label="Name" /></AccordionItem></Accordion>

Variant matrix

Settings sections

Anatomy

Package
@gemologic/sheen
Source
packages/ui/src/primitives/Accordion.tsx
Tokens
  • --sheen-duration-normal
  • --sheen-space-block-sm

Accessibility

Role: group of disclosure headingsKeyboard: Tab, Shift+Tab, Enter, Space, ArrowDown, ArrowUp, Home, End

Do

  • Use stable, unique item values.
  • Use a heading level appropriate to the surrounding document.

Do not

  • Do not use an accordion as a tab interface or route navigation.

Generated props

NameTypeDefaultDescription
valuestring[]Controlled expanded item values.
defaultValuestring[]Initially expanded uncontrolled item values.
onValueChange(value: string[]) => voidRequested expanded values; controlled owners may reject changes.
multiplebooleanfalseAllow multiple sections to remain expanded.
collapsiblebooleantrueAllow the selected single-mode section to close.
Native Solid/HTML attributes remain available and are omitted from this authored-prop view.