Docs
Alert

Alert

Displays a callout for user attention.

Installation

bash
npx shadcn-vue@latest add alert

Usage

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

<template>
  <Alert>
    <AlertTitle>Heads up!</AlertTitle>
    <AlertDescription>
      You can add components to your app using the cli.
    </AlertDescription>
  </Alert>
</template>
Edit this page on GitHub