alert
A component that provides outline styling and use the outline icon styling for all variations of the antd alert.
#
Installation#
PropsIt accepts the alert
props such as (type, closable, message, showIcon, ...).
Name | Description | Type | Default | Version |
---|---|---|---|---|
afterClose | Called when close animation is finished | () => void | - | 3.3.1 |
banner | Whether to show as banner | boolean | false | |
closable | Whether Alert can be closed | boolean | - | |
closeText | Close text to show | string|ReactNode | - | |
description | Additional content of Alert | string|ReactNode | - | |
icon | Custom icon, effective when showIcon is true | ReactNode | - | 3.10.0 |
message | Content of Alert | string|ReactNode | - | |
showIcon | Whether to show icon | boolean | true, in banner mode; default is true | |
type | Type of Alert styles, options: success , info , warning , error | string | info , in banner mode default is warning | |
onClose | Callback when Alert is closed | (e: MouseEvent) => void | - |