#105
Severities
The four alert severities stacked: success, warning, error and info, each with a one-line message.
Hand this to your AI. It names the exact library parts, timings and accessibility promises of this demo.
Build the "Severities" pattern (@codeatlasdev/ui demo #105, display/alert) in my app.
Call get_demo({ ids: ["#105"] }) first and keep its structure. It needs @codeatlasdev/[email protected].
Use: Choosing the alert severity for save confirmations, trial warnings, connection errors and update notices.
Keep these library parts, with the props and tokens the demo uses:
- Alert from "@codeatlasdev/ui"
Behaviour to keep:
- `severity="success"` with the saved-changes message
- `severity="warning"` with the trial-expires-in-3-days message
- `severity="error"` with the failed-to-connect message
- `severity="info"` with the new-version message
- Wrapper `.col` has `max-width: 560px`
Reduced motion: the demo handles it; keep that branch.
Keyboard: not an interactive control.
Change only the copy and the data. Use the theme tokens (--ca-*), never raw colours. Library parts
- Alert
@codeatlasdev/ui
How it is built
- `severity="success"` with the saved-changes message
- `severity="warning"` with the trial-expires-in-3-days message
- `severity="error"` with the failed-to-connect message
- `severity="info"` with the new-version message
- Wrapper `.col` has `max-width: 560px`
Related
Loading source.