Docs
警报

警报

显示醒目的用户提示。

安装

npx shadcn-ui@latest add alert

用法

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

示例

默认

销毁