Alert

Displays a callout for user attention.

Installation

npx ghost-ui-native add alert

Usage

import { Alert, AlertTitle, AlertDescription } from '@/components/ui/alert';
<Alert>
  <AlertTitle>Heads up!</AlertTitle>
  <AlertDescription>You can add components to your app using the CLI.</AlertDescription>
</Alert>

Variants

<Alert variant="default">...</Alert>
<Alert variant="destructive">...</Alert>