Lab

Alerts

Slant / Controls

Inline notices for information, success, and errors, each with an action and a dismiss button.

The theme follows the link: share a page with ?theme=moon.

Usage

  • Use role="status" for information and role="alert" for errors so they announce appropriately.
  • Colour comes from the state tokens; the icon and title carry the meaning.

Keyboard

Tabreaches the action and dismiss buttons
Enter / Spaceactivates them

Accessibility

  • Dismiss buttons are labelled; the notice text does not rely on colour.

Alerts in React and SwiftUI.

Source

The React tab is the component’s real source; the SwiftUI tab is its twin in TUTTNKit.