Skip to content

AlertProps

AlertProps = object

PropertyTypeDescription
children?React.ReactNodeContent to render within the element.
className?stringA class property to attach to the element. See Element.className
icon?IconNameThe 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?stringAn identifier to attach to the element. See Element.id
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.)
title?string-
type?"error" | "info" | "success" | "warn"The type of alert to show to the user. Default info