Alert
Displays a callout message that draws attention to important information.
alert-01
Loading...
import {
Alert,
AlertDescription,
AlertTitle,
} from "@/components/ui/alert";
export function AlertDemo() {
return (
<Alert className="max-w-80">
<AlertTitle>Designali UI</AlertTitle>
<AlertDescription>
<p>Explore beautiful, customizable components built for modern web applications.</p>
</AlertDescription>
</Alert>
);
}alert-02
Loading...
import { InfoIcon } from "lucide-react";
import {
Alert,
AlertDescription,
AlertTitle,
} from "@/components/ui/alert";
export function AlertDemo() {
return (
<Alert className="max-w-80">
<InfoIcon />
<AlertTitle>Designali UI</AlertTitle>
<AlertDescription>
Explore beautiful, customizable components built for modern web applications.
</AlertDescription>
</Alert>
);
}alert-03
Loading...
import { InfoIcon } from "lucide-react";
import {
Alert,
AlertAction,
AlertDescription,
AlertTitle,
} from "@/components/ui/alert";
import { Button } from "@/components/ui/button";
export function AlertDemo() {
return (
<Alert className="max-w-80">
<InfoIcon />
<AlertTitle>Designali UI</AlertTitle>
<AlertDescription>
Explore beautiful, customizable components built for modern web applications.
</AlertDescription>
<AlertAction>
<Button size="xs" variant="ghost">
Dismiss
</Button>
<Button size="xs">Ok</Button>
</AlertAction>
</Alert>
);
}alert-04
Loading...
import { InfoIcon } from "lucide-react";
import {
Alert,
AlertDescription,
AlertTitle,
} from "@/components/ui/alert";
export function AlertDemo() {
return (
<Alert variant="info" className="max-w-80">
<InfoIcon />
<AlertTitle>Designali UI</AlertTitle>
<AlertDescription>
Explore beautiful, customizable components built for modern web applications.
</AlertDescription>
</Alert>
);
}alert-05
Loading...
import { CircleCheckIcon } from "lucide-react";
import {
Alert,
AlertDescription,
AlertTitle,
} from "@/components/ui/alert";
export function AlertDemo() {
return (
<Alert variant="success" className="max-w-80">
<CircleCheckIcon />
<AlertTitle>Designali UI</AlertTitle>
<AlertDescription>
Explore beautiful, customizable components built for modern web applications.
</AlertDescription>
</Alert>
);
}alert-06
Loading...
import { TriangleAlertIcon } from "lucide-react";
import {
Alert,
AlertDescription,
AlertTitle,
} from "@/components/ui/alert";
export function AlertDemo() {
return (
<Alert variant="warning" className="max-w-80">
<TriangleAlertIcon />
<AlertTitle>Designali UI</AlertTitle>
<AlertDescription>
Explore beautiful, customizable components built for modern web applications.
</AlertDescription>
</Alert>
);
}alert-07
Loading...
import { CircleAlertIcon } from "lucide-react";
import {
Alert,
AlertDescription,
AlertTitle,
} from "@/components/ui/alert";
export function AlertDemo() {
return (
<Alert variant="error" className="max-w-80">
<CircleAlertIcon />
<AlertTitle>Designali UI</AlertTitle>
<AlertDescription>
Explore beautiful, customizable components built for modern web applications.
</AlertDescription>
</Alert>
);
}alert-dialog-01
Loading...
import { Trash2Icon } from "lucide-react";
import {
AlertDialog,
AlertDialogAction,
AlertDialogCancel,
AlertDialogContent,
AlertDialogDescription,
AlertDialogFooter,
AlertDialogHeader,
AlertDialogMedia,
AlertDialogTitle,
AlertDialogTrigger,
} from "@/components/ui/alert-dialog";
import { Button } from "@/components/ui/button";
export function AlertDialogDemo() {
return (
<AlertDialog>
<AlertDialogTrigger render={<Button variant="destructive" />}>
Delete Designali Project
</AlertDialogTrigger>
<AlertDialogContent>
<AlertDialogHeader>
<AlertDialogMedia>
<Trash2Icon />
</AlertDialogMedia>
<AlertDialogTitle>Are you absolutely sure?</AlertDialogTitle>
<AlertDialogDescription>
This action cannot be undone. This will permanently delete your
Designali project and remove all associated component assets from our servers.
</AlertDialogDescription>
</AlertDialogHeader>
<AlertDialogFooter>
<AlertDialogCancel>Cancel</AlertDialogCancel>
<AlertDialogAction variant="destructive">
Delete Project
</AlertDialogAction>
</AlertDialogFooter>
</AlertDialogContent>
</AlertDialog>
);
}alert-dialog-02
Loading...
import {
AlertDialog,
AlertDialogAction,
AlertDialogCancel,
AlertDialogContent,
AlertDialogDescription,
AlertDialogFooter,
AlertDialogHeader,
AlertDialogTitle,
AlertDialogTrigger,
} from "@/components/ui/alert-dialog";
import { Button } from "@/components/ui/button";
export function AlertDialogDemo() {
return (
<AlertDialog>
<AlertDialogTrigger render={<Button variant="destructive" />}>
Delete Designali Account
</AlertDialogTrigger>
<AlertDialogContent>
<AlertDialogHeader>
<AlertDialogTitle>Are you absolutely sure?</AlertDialogTitle>
<AlertDialogDescription>
This action cannot be undone. This will permanently delete your
Designali account and remove all associated component data from our servers.
</AlertDialogDescription>
</AlertDialogHeader>
<AlertDialogFooter>
<AlertDialogCancel>Cancel</AlertDialogCancel>
<AlertDialogAction variant="destructive">
Delete Account
</AlertDialogAction>
</AlertDialogFooter>
</AlertDialogContent>
</AlertDialog>
);
}Categories
- Accordion
- Alert
- Alert Dialog
- Aspect Ratio
- Avatar
- Badge
- Breadcrumb
- Button
- Calendar
- Card
- Carousel
- Checkbox
- Collapsible
- Combobox
- Command
- Context Menu
- Dialog
- Drawer
- Dropdown Menu
- Field
- Hover Card
- Input
- Input OTP
- Label
- Menubar
- Navigation Menu
- Pagination
- Popover
- Progress
- Radio Group
- Resizable
- Scroll Area
- Select
- Separator
- Sheet
- Skeleton
- Slider
- Spinner
- Switch
- Table
- Tabs
- Textarea
- Toast
- Toggle
- Toggle Group
- Tooltip