Axon 911 Frontend DocsAxon 911 Frontend Docs
Axon 911 Frontend Docs
    Loading navigation…
U
User
Switch to light mode
  1. Components
  2. Alert
  3. Accessibility

Alert

Accessibility

type chooses paint, the icon, and the default ARIA role. The variant map is:
AlertTypeRole
Notenote
Infonote
Successstatus
Warningstatus
Erroralert
Pass role (note, alert, or status) to override that default. The default story expects getByRole("note") for AlertType.Note. The dismissible accessibility story uses AlertType.Error, whose role names the region, and a localized dismissTitle on the dismiss control. aria-label names the root when the title alone is insufficient. A description is linked from the root with aria-describedby. The component prefers aria-label over aria-labelledby for the root name.
Previous
Alert / API and Development
Next
Alert Dialog / Usage