Put the icon first, then AlertTitle and AlertDescription. The alert has role="alert", so pass role="status" for a message that is not urgent.
The sample also uses Button. One command adds them with this item:
payment-alert.tsx
Alert
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| variant | "default""destructive""info""success""warning" | "default" | |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
AlertTitle
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
AlertDescription
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
AlertAction
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
- ToastPick Toast for a short note after an action that stacks in a corner and closes on its own.
- Alert DialogPick Alert Dialog to ask a yes or no question before an action, in a window that blocks the page.
- BadgeA short label next to content, such as a count, a status, or a plan name. Pick a color for the meaning, and use the link form to go to a page.
- Announcement BarPick Announcement Bar for one site-wide message across the top of the page, such as news or an offer.







