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 '@/components/ui/alert'
</script>

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

Examples

Default

Destructive

Edit this page on GitHub