DATA DISPLAY
Accordion
Stacked, expandable sections. Built on Radix Accordion — full keyboard wiring, controlled and uncontrolled modes, and the ARIA disclosure pattern come from the primitive.
Import
Single, collapsible
A Memphis-inspired React + Next.js component library.
Multiple open at once
Props (Accordion root)
Accordion props
| Prop | Type | Default | Description |
|---|---|---|---|
| type* | 'single' | 'multiple' | — | single allows one item open at a time; multiple allows several. |
| collapsible | boolean | — | Only valid for type="single". When true the active item can be closed by clicking it again. |
| value / defaultValue | string | string[] | — | Controlled / uncontrolled active value(s). |
| onValueChange | (value: string | string[]) => void | — | Fires whenever the active item(s) change. |
| orientation | 'horizontal' | 'vertical' | 'vertical' | Layout direction for keyboard navigation. |
Accessibility
- Radix wraps each
AccordionTriggerin an<h3>with a real<button>inside —aria-expandedtracks the open state andaria-controlswires it to the content panel. - Keyboard: Tab moves between triggers; Enter / Space toggle the focused panel; Home / End jump to the first / last trigger.