| action | The action of Alert | ReactNode | - | 4.9.0 |
afterClose | Called when close animation is finished, please use closable.afterClose instead | () => void | - | |
| banner | Whether to show as banner | boolean | false | |
| classNames | Customize class for each semantic structure inside the component. Supports object or function | Record<SemanticDOM, string> | (info: { props }) => Record<SemanticDOM, string> | - | |
| closable | The config of closable, >=5.15.0: support aria-* | boolean | ClosableType & React.AriaAttributes | false | |
| description | Additional content of Alert | ReactNode | - | |
| icon | Custom icon, effective when showIcon is true | ReactNode | - | |
message | Content of Alert, please use title instead | ReactNode | - | |
| title | Content of Alert | ReactNode | - | |
| showIcon | Whether to show icon | boolean | false, in banner mode default is true | |
| styles | Customize inline style for each semantic structure inside the component. Supports object or function | Record<SemanticDOM, CSSProperties> | (info: { props }) => Record<SemanticDOM, CSSProperties> | - | |
| type | Type of Alert styles, options: success, info, warning, error | string | info, in banner mode default is warning | |
onClose | Callback when Alert is closed, please use closable.onClose instead | (e: MouseEvent) => void | - | |
closeIcon | Custom close icon, please use closable.closeIcon instead | ReactNode | - | - |
closeText | Close text to show, please use closable.closeIcon instead | ReactNode | - | - |