Table of Contents#
Default Alert#
Multiple Type Alert#
Alert Props#
| Prop | Type | Default | Description |
|---|---|---|---|
| type | success warning error info | - | Specifies the type of alert to display, which determines the style and icon. |
| children | ReactNode | - | The content displayed inside the alert. |
| closeable | boolean | true | Determines whether the alert can be dismissed. |
| onClose | () => void | - | Callback function invoked when the alert is closed. |
| className | string | '' | Additional CSS classes for the alert container. |