Skip to content

Alert

Menampilkan pesan sorotan untuk menarik perhatian pengguna.

Instalasi

CLI

bash
npx shadcn-vue@latest add alert

Manual

Salin dan tempel kode sumber di GitHub ke project Anda.

Sesuaikan path import dengan struktur project Anda.

Penggunaan

vue
<script setup lang="ts">
import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert'
</script>

<template>
  <Alert>
    <AlertTitle>Heads up!</AlertTitle>
    <AlertDescription>
      You can add components and dependencies to your app using the cli.
    </AlertDescription>
  </Alert>
</template>

Dirilis di bawah lisensi MIT. Fork dari shadcn-vue.