Anatomy
1
2
Accordion item
Content area
- 1 Summary — clickable trigger with chevron indicator
- 2 Content — expandable body area
Options
Table of options
| Property | Values | Default |
|---|---|---|
| title | text | — |
| open | true / false | false |
| disabled | true / false | false |
Keyboard interactions
| Key | Action |
|---|---|
| Tab | Moves focus between summary elements |
| Enter / Space | Toggles the focused item open/closed |
Accessibility
- Uses native
<details>and<summary>elements — keyboard and screen reader support is built-in. - The browser manages
aria-expandedstate automatically. - Disabled items use
pointer-events: noneand muted color to indicate non-interactivity.
Design checklist
All brand/mode contextsWorks across light and dark modes.
Keyboard interactionsNative details/summary behavior.
Design tokensComponent-scoped tokens (
--uif-accordion-*).The accordion fills the available inline space and keeps that width when items open or close. Hover uses a subtle tint mixed from the current Semantic Brand foreground and surface; no Brand-specific colors are hardcoded.