Alert

Inline alert surface for success, warning, and destructive messaging.

Installation

npx shadcn@latest add @gameone/alert

Registry dependencies: gameone-utils

Usage

Import
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert"
Example
<Alert>
  <AlertTitle>Heads up</AlertTitle>
  <AlertDescription>
    Important information goes here.
  </AlertDescription>
</Alert>

Examples

Default

Destructive

Success

Warning

Info