Alert
Markdown for agentsInline alert for status messages with semantic variants.
npx slipstream-ui@latest add alertUsage
Error
Your session has expired. Please log in again.
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.