An inline message for info, success, warning or error. A raised card with a coloured edge. Error and warning use role=alert. Can be dismissed.
Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.
| Prop | Type | Default | Description |
|---|---|---|---|
| tone | "info" | "success" | "warning" | "error" | "info" | The tone of the message. Sets the colour, icon and ARIA role. |
| title | ReactNode | Bold heading. | |
| children | ReactNode | The message text. | |
| dismissible | boolean | Show a close button. | |
| onDismiss | () => void | Called after the alert is dismissed. | |
| action | ReactNode | An action, such as a button or link, shown under the message. | |
| className | string | Extra classes added to the outer element. |