Alert
An inline callout for information, warnings, success, and errors.
Variants
warning and destructive render with role="alert"; default and success render with role="status". Pass role to override. default uses the secondary background, so place it on a primary surface such as a card, dialog, or page.
How this visibility score works
It reflects tracked prompts in your category over the selected range.
Prompt refresh budget is almost used
You are near this month’s refresh limit for this category.
Citation export is ready
Your CSV finished generating and is ready to download.
Answer engine data did not load
We could not load responses for this run. Retry shortly.
Compositions
Every part is optional. Wrap a title and description in AlertContent so they stack.
GA4 mapping is incomplete for this domain.
Select a category to compare brands
IndexNow pings supported engines when you publish.
Installation
pnpm dlx shadcn@latest add @narakui/alertAdd "@narakui": "https://ui.narakcode.dev/r/{name}.json" to components.json, or install directly from https://ui.narakcode.dev/r/alert.json.
Alert Properties
| Prop | Type | Default | Description |
|---|---|---|---|
variant | 'default' | 'warning' | 'destructive' | 'success' | 'default' | Surface tint and icon color. AlertIcon inherits it. |
role | string | — | Overrides the live-region role chosen from the variant. |
className | string | — | Additional classes for the container. |
AlertIcon Properties
| Prop | Type | Default | Description |
|---|---|---|---|
variant | 'default' | 'warning' | 'destructive' | 'success' | — | Overrides the icon tint from the enclosing Alert. |