UI
← Home

Disclosure

An accessible button that toggles the visibility of a content region (ARIA APG disclosure pattern).

  • Axe
  • Focus
  • Restore

Preview

Installation

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

Conformance

Verified against the @publictheta/ui-spec disclosure 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.