UI
← Home

Reveal

A disclosure whose reveal is animated — but which honours `prefers-reduced-motion`. By default the content fades in; when the user prefers reduced motion the transition is removed and the content appears instantly, with no loss of functionality. Motion is presentation; the discrete show/hide is the contract.

  • Axe
  • Focus

Preview

Installation

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

Conformance

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

See the full conformance matrix across all components.