Docs
警告
警告
显示一个需要用户注意的提示。
Heads up!
You can add components to your app using the cli.
安装
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>
示例
默认
Heads up!
You can add components to your app using the cli.
销毁性
Error
Your session has expired. Please log in again.