Skip to content

AlertProps

AlertProps: object

Type declaration

NameTypeDescription
childrenstringContent to render within the element.
classNamestringA class property to attach to the element. See Element.className
iconIconNameThe 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() => voidA callback invoked when a user clicks the alert’s close button. (The close button is rendered only when an onClose callback is specified.)
titlestring-
type"info" | "error" | "warn"The type of alert to show to the user. Default info