AlertProps
AlertProps:
object
Type declaration
Name | Type | Description |
---|---|---|
children | React.ReactNode | 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 . |
id | string | An identifier to attach to the element. See Element.id |
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 | "error" | "info" | "success" | "warn" | The type of alert to show to the user. Default info |