AlertProps
AlertProps:
object
Type declaration
Name | Type | Description |
---|---|---|
children | string | Content to render within the element. |
className | string | A class property to attach to the element. See Element.className |
icon | IconName | The name of an icon to render on the left side of the alert content. When not specified, an icon will be displayed that matches the specified type . |
onClose | () => void | A callback invoked when a user clicks the alert’s close button. (The close button is rendered only when an onClose callback is specified.) |
title | string | - |
type | "info" | "error" | "warn" | The type of alert to show to the user. Default info |