Alert
Inline alert for status messages with semantic variants.
npx @slipstream-ui/cli@latest add alertAll variants
Heads up
Neutral information — the default variant.
New: validate_usage
Your agent can now check JSX against manifests before emitting.
Deployed
42 pages published to production in 6.2s.
Token expires soon
Your API key rotates in 7 days — update your agents.
Error
Your session has expired. Please log in again.
Title-only and description-only
Maintenance window
Single-line notices work without a title.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | 'default' | 'destructive' | 'success' | 'warning' | 'info' | 'default' | Semantic style variant. |
| children | ReactNode | — | Alert content (AlertTitle and AlertDescription). |
Accessibility
- role=alert announces the content when it appears.
- AlertTitle renders as h5; maintain logical heading order.
- Every semantic variant meets WCAG AA text contrast in light and dark modes.
Browser support
| Browser | Tested versions |
|---|---|
| Chrome | 111+ (Mar 2023) |
| Edge | 111+ (Mar 2023) |
| Firefox | 121+ (Dec 2023) |
| Safari | 17.2+ — macOS & iOS (Dec 2023) |
Slipstream components rely only on CSS custom properties, Flexbox/Grid, and ARIA — the everyday baseline of the last two years of evergreen releases. Anything newer is progressive enhancement: unsupported browsers keep full functionality with static behavior instead of animations.