94.2k

警报

上一个下一个

显示一个呼叫,以引起用户注意。

安装

pnpm dlx shadcn@latest add alert

用法

import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert"
<Alert variant="default | destructive">
  <Terminal />
  <AlertTitle>Heads up!</AlertTitle>
  <AlertDescription>
    You can add components and dependencies to your app using the cli.
  </AlertDescription>
</Alert>