Components
- Accordion new
- ActionSheet new
- Alert new
- Alert Dialog new
- Angle Slider new
- Autocomplete new
- Avatar new
- Badge new
- Breadcrumb new
- Button new
- Button Group new
- Card new
- Carousel new
- Checkbox new
- Clipboard new
- Collapsible new
- Color Picker new
- Date Input new
- Date Picker new
- Dialog new
- DialogCaller new
- Drawer beta
- Editable new
- Empty new
- Field new
- Fieldset new
- File Upload new
- Filters new
- Floating Panel new
- Hover Card new
- Image new
- Image Cropper new
- Input new
- Input Group new
- Json Tree View new
- Kbd new
- Listbox new
- Marquee new
- Menu new
- Number Input new
- Pagination new
- Password Input new
- PhoneField new
- Pin Input new
- Popover new
- Progress Circular new
- Progress Linear new
- Qr Code new
- Radio Group new
- Rating Group new
- Scroll Area new
- ScrollSpy new
- Segment Group new
- Select new
- Separator new
- Sidebar new
- Signature Pad new
- Skeleton new
- Slider new
- Splitter new
- Steps new
- Switch new
- Table new
- Tabs new
- Tags Input new
- Textarea new
- Timeline new
- Timer new
- Toast new
- Toc new
- Toggle new
- Toggle Group new
- Tooltip new
- Tour new
- Tree View new
- Typography new
Features
- Composable — Flexible slot-based layout with
Alert.Icon,Alert.Title, andAlert.Description - Variants —
default,info,success,warning, anddestructivestyles - Accessible — Uses
role="alert"for screen reader announcements - Icon support —
Alert.Iconrenders a variant-aware icon automatically
Installation
Install from the Vuzeno registry:
bunx --bun shadcn-vue@latest add https://vuzeno.com/r/alert.json
npx shadcn-vue@latest add https://vuzeno.com/r/alert.json
yarn dlx shadcn-vue@latest add https://vuzeno.com/r/alert.json
pnpm dlx shadcn-vue@latest add https://vuzeno.com/r/alert.json
Usage
<script setup lang="ts">
import { Alert } from "@/components/ui/alert";
</script>
<template>
<Alert.Root variant="info">
<Alert.Icon />
<Alert.Title>Heads up!</Alert.Title>
<Alert.Description>
You can add components to your app using the CLI.
</Alert.Description>
</Alert.Root>
</template>
Composition
Alert.Root
├── Alert.Icon
├── Alert.Title
└── Alert.Description
Examples
With icon
Alert.Icon picks the icon from the root variant.
Variants
All semantic variants with their default icons.
Destructive
Use variant="destructive" for error or critical messages.
API
| Part | Description |
|---|---|
Alert.Root | Root container with role="alert". Supports variant prop |
Alert.Icon | Variant-aware icon (size-3.5). Inherits variant from root |
Alert.Title | Alert heading |
Alert.Description | Supporting text or rich content |
Variants
| Variant | Icon | Description |
|---|---|---|
default | Bell | Neutral callout for general information |
info | Info | Informational message with blue styling |
success | Circle check | Positive confirmation or completed action |
warning | Triangle alert | Caution or attention needed |
destructive | Circle alert | Error or critical failure state |