Docs
Alert

Alert

Displays a callout for user attention.

Loading...
Loading...

Installation

npx shadcn-ng@latest add alert
npm
yarn
pnpm
bun

Copy and paste the following code into your project.

Update the import paths to match your project setup.

Usage

import {
  UbAlertDirective,
  UbAlertDescriptionDirective,
  UbAlertTitleDirective,
} from "@/components/ui/alert.directive";
<div ubAlert>
    <h5 ubAlertTitle>Heads up!</h5>
    <div ubAlertDescription>
        You can add components and dependencies to your app using the cli.
    </div>
</div>

Examples

Default

Loading...
Loading...

Destructive

Loading...
Loading...