Alert

Inline status callout with title, description and an optional top-right action slot. Default and destructive variants; a leading icon moves the text into a second column.

Open the preview in a new tab
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert"

/** Alert with a title and a description. */
export default function AlertDemo() {
  return (
    <Alert className="max-w-lg">
      <AlertTitle>Your license key was emailed</AlertTitle>
      <AlertDescription>
        Paste it into your CLI config to install paid blocks. It never expires.
      </AlertDescription>
    </Alert>
  )
}

Installation

pnpm dlx shadcn add @01orbital/alert
npx shadcn add @01orbital/alert
yarn shadcn add @01orbital/alert
bunx --bun shadcn add @01orbital/alert

Add the @01orbital registry to components.json once (install guide), then run the command.

It lands at components/ui/alert.tsx, as source you own and edit.

Dependencies

npm: class-variance-authority, cn. The CLI installs them for you.

No other registry pieces.

On this page