Alert
Alert component for feedback.
When To Use#
- When you need to show alert messages to users.
- When you need a persistent static container which is closable by user actions.
Examples#
Basic#
Info Text
With type#
Info Text
Success Text
Warning Text
Error Text
With closable#
Info Text
API#
| Property | Description | Type | Default |
|---|---|---|---|
closable | boolean | false | |
type | 'info' | 'success' | 'error' | 'warning' | 'info' | |
message | ReactNode | ||
onClose | () => void | ||
onClosed | () => void |