Alert

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.

Alert3D props

PropTypeDefaultDescription
tone"info" | "success" | "warning" | "error""info"The tone of the message. Sets the colour, icon and ARIA role.
titleReactNodeBold heading.
childrenReactNodeThe message text.
dismissiblebooleanShow a close button.
onDismiss() => voidCalled after the alert is dismissed.
actionReactNodeAn action, such as a button or link, shown under the message.
classNamestringExtra classes added to the outer element.

More components

Guides

Start

Cards

Scenes

Controls & text

Buttons

More cards

UI elements

Form controls

App components

Text & backgrounds

Showpieces

Blocks