Zostel
Feedback Alert

Alert

A message in the page — what happened and what to do.

Preview

Default

Destructive

Usage

tsx
import { Alert, AlertTitle, AlertDescription } from "zostel-ui";

<Alert>
  <AlertTitle>Check-in tomorrow</AlertTitle>
  <AlertDescription>Zostel Manali. Bring an ID.</AlertDescription>
</Alert>

<Alert variant="destructive">
  <AlertTitle>The payment didn't go through</AlertTitle>
  <AlertDescription>Nothing was charged. Try again.</AlertDescription>
</Alert>

Props

variant
Type: "default" | "destructive"
Default: "default"

destructive for errors.

className
Type: string
Default: —

More classes, merged with the component’s own (tailwind-merge).