UI
← Home

Accordion

A stack of headered, collapsible panels. Each header is a button inside a heading with ` aria-expanded` and `aria-controls`; each panel is a labelled region. Opening one panel closes the others (single-open), and Arrow keys plus Home/End move focus between headers (ARIA APG accordion pattern).

  • Axe
  • Focus
  • Restore

Preview

Installation

npx shadcn@latest add https://ui.publictheta.com/r/accordion.json

Conformance

Verified against the @publictheta/ui-spec accordion specification on both the React and vanilla reference implementations, across Chromium, Firefox, and WebKit.

  • Axe No WCAG 2 A/AA axe-core violations
  • Focus A visible focus indicator appears on keyboard focus (WCAG 2.4.7)
  • Restore What the user set is still there after a reload — the pane size, the column widths, the open section, the active tab, the scroll position — but only where the host opted in, and never at the cost of working when storage is unavailable

See the full conformance matrix across all components.