A
Auralix UI

Alert

Display important messages and notifications to users.

Preview

Installation

bash
npx auralix-ui add alert

Usage

Info Alert

tsx
import { Alert } from "@/components/ui/Alert";

<Alert variant="info">
  This is an informational message.
</Alert>

Alert with Title

tsx
<Alert variant="success" title="Success!">
  Your changes have been saved.
</Alert>

Alert Variants

tsx
<Alert variant="success">Success message</Alert>
<Alert variant="error">Error message</Alert>
<Alert variant="warning">Warning message</Alert>
<Alert variant="info">Info message</Alert>

Props

NameTypeDefaultDescription
variant"success" | "error" | "warning" | "info""info"The type/color of the alert.
titlestring-Optional title for the alert.
iconbooleantrueWhether to show the icon.
childrenReactNode-The alert message content.

Variants

Standard
Solid
Left Accent