Docs
警报
警报
显示标注以引起用户注意。
Heads up!
You can add components to your app using the cli.
安装
¥Installation
pnpm dlx shadcn@latest add alert
用法
¥Usage
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert"
<Alert>
<Terminal className="h-4 w-4" />
<AlertTitle>Heads up!</AlertTitle>
<AlertDescription>
You can add components and dependencies to your app using the cli.
</AlertDescription>
</Alert>
示例
¥Examples
默认
¥Default
Heads up!
You can add components to your app using the cli.
破坏性
¥Destructive
Error
Your session has expired. Please log in again.