Alert
StableDisplays a callout for user attention.
Examples
Default (Primary)
System Diagnostic
All systems are functioning within normal parameters.
tsx
<Alert title="System Diagnostic" icon={<Terminal className="h-4.5 w-4.5 text-cyan-400" />}>
All systems are functioning within normal parameters.
</Alert>Destructive
Security Breach
Unauthorized access detected in sector 4.
tsx
<Alert variant="destructive" title="Security Breach">
Unauthorized access detected in sector 4.
</Alert>Warning
High CPU Usage
Node 7 is experiencing 98% CPU load.
tsx
<Alert variant="warning" title="High CPU Usage">
Node 7 is experiencing 98% CPU load.
</Alert>API Reference
| Property | Description | Type | Default |
|---|---|---|---|
| variant | The visual style variant. | "info" | "success" | "warning" | "destructive" | "info" |
| title | The title of the alert. | string | - |
| icon | Custom icon element. | React.ReactNode | - |
| closable | Whether to show a close button. | boolean | false |