Panel height uses the Base UI measured height variable and shared reveal tokens.
Opacity reinforces state without carrying essential information.
Reduced motion makes the state change immediate.
Accessibility
Uses the Base UI Accordion primitive and one native trigger button for each item.
Wrap each trigger in AccordionHeader and choose a heading level that fits the surrounding page hierarchy through render composition.
Each item requires a stable string value for controlled state and predictable associations.
Single expansion is the default; multiple allows independent open items without changing trigger keyboard semantics.
Disabled items remain visible but cannot change state.
Closed panels are unmounted by default so hidden interactive descendants do not remain focusable; keepMounted and hiddenUntilFound preserve browser-hidden semantics.
Tab follows document order and Enter or Space toggles the focused trigger; Arrow-key roving focus is intentionally not added after the current APG guidance update.
Height and opacity motion use shared disclosure tokens and become immediate under reduced motion.
Review the shared responsibility and evidence boundaries in the Accessibility foundation alongside this component-specific contract. Use the Spacing & layout foundation for shared density, wrapping, overflow, reflow, and component-versus-product ownership guidance. The Color foundation, Typography foundation, and Localization foundation define the shared visual-role, text-resilience, direction, and locale boundaries used by component examples.
API
Prop
Use
value / defaultValue
Controlled or uncontrolled arrays of stable string values.
onValueChange
Receives the next array and cancellable Nerio event details.
multiple
Allows more than one item to remain open.
AccordionItem value / disabled
Identifies one item and optionally disables it.
AccordionHeader render
Selects the heading level required by the document outline.
Implementation contract
Contract
Value
Registry item
accordion installs 6 source files into the configured components directory.