Docs
警告

警告

显示一个需要用户注意的提示。

安装

pnpm dlx shadcn@latest add alert

使用

import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert"
<Alert>
  <Terminal className="h-4 w-4" />
  <AlertTitle>注意!</AlertTitle>
  <AlertDescription>
    您可以使用 cli 将组件和依赖项添加到您的应用中.
  </AlertDescription>
</Alert>

示例

默认

销毁性