Skip to main content
ParticleUI

Alert

Inline alert banner with default, info, success, warning, and destructive variants.

Installation

1

Run the CLI

$npx particleui-cli add alert

Usage

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

export default function Example() {
  return (
    <Alert>
      <AlertTitle>Heads up!</AlertTitle>
      <AlertDescription>You can add components from the CLI.</AlertDescription>
    </Alert>
  )
}

Props

PropTypeDefaultRequired
iconbooleanno

Details

Source filecomponents/ui/alert.tsx
Typeui
Categoriesfeedback, core
npm dependenciestailwind-variants, lucide-react
Registry deps
Claude skill