Alert

A message box for feedback — success, info, warning, or error.

Preview

<script>
  import { Alert, AlertTitle, AlertDescription } from '@vultra/ui';
</script>

<Alert>
  <AlertTitle>Heads up!</AlertTitle>
  <AlertDescription>You can add content to the alert.</AlertDescription>
</Alert>

<Alert variant="destructive">
  <AlertTitle>Error</AlertTitle>
  <AlertDescription>Something went wrong.</AlertDescription>
</Alert>

Props

PropTypeDefault
variant'default' \| 'destructive''default'
classstring

Install

npx @vultra/cli add alert