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>

デフォルト

破棄