Docs
警报

警报

显示标注以引起用户注意。

安装

¥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

破坏性

¥Destructive