Alert
Displays a callout for user attention.
Heads up!
You can add components to your app using the cli.
Installation
npm i @huin-core/react-alertAPI Reference
Alert
| Prop | Type | Description |
|---|---|---|
| asChild | boolean | When set to true, renders the component as its child element, inheriting the child's styles and behavior. |
| variant | "default" | "destructive" | Defines a different style or appearance of the component, allowing for customization of its look and feel based on specific use cases. |
AlertTitle
| Prop | Type | Description |
|---|---|---|
| asChild | boolean | When set to true, renders the component as its child element, inheriting the child's styles and behavior. |
AlertDescription
| Prop | Type | Description |
|---|---|---|
| asChild | boolean | When set to true, renders the component as its child element, inheriting the child's styles and behavior. |