ComponentServer-safe

Alert

A semantic callout for important information and feedback.

Installation

Preview

Usage

tsx
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert"

<Alert>
  <AlertTitle>Heads up</AlertTitle>
  <AlertDescription>Your workspace is ready.</AlertDescription>
</Alert>

API reference

PropTypeDefaultDescription
classNamestringOverrides or extends the generated Tailwind classes.
disabledbooleanfalsePrevents user interaction when supported.