UI
← Home

Banner

A dismissible status banner: a labelled `role="status"` region with a message and a dismiss button. Dismissing removes the banner and moves focus to a show button (so keyboard focus is never lost); showing it again restores the banner and returns focus to dismiss.

  • Axe
  • Focus

Preview

Your changes were saved.

Installation

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

Conformance

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