Alert
Text Component
Demo
A notification to capture user attention.
Installation
Copy/paste the following code to ~/components/ui/alert.tsx
:
Usage
Props
Alert
Extends View
props
Prop | Type | Note |
---|---|---|
variant | "default" | "destructive" | (optional) |
icon | LucideIcon | (required) |
iconSize | number | (optional, default: 16 ) |
iconClassName | string | (optional) |
AlertTitle
Extends Text
props
Prop | Type | Note |
---|---|---|
asChild | boolean | (optional) |
AlertDescription
Extends Text
props
Prop | Type | Note |
---|---|---|
asChild | boolean | (optional) |