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 androle="alert"for errors so they announce appropriately. - Colour comes from the state tokens; the icon and title carry the meaning.
Keyboard
| Tab | reaches the action and dismiss buttons |
| Enter / Space | activates them |
Accessibility
- Dismiss buttons are labelled; the notice text does not rely on colour.
Alerts in React and SwiftUI.
The React tab is the component’s real source; the SwiftUI tab is its twin in TUTTNKit.