文档
警告提示
警告提示
显示用于引起用户注意的标注。
注意!
您可以使用 cli 将组件添加到您的应用程序中。
安装
pnpm dlx shadcn@latest add alert
用法
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>
示例
默认
注意!
您可以使用 cli 将组件添加到您的应用程序中。
破坏性
错误
您的会话已过期。请重新登录。