Alert
tone: info, success, warning, danger. onClose makes it dismissible.
Bello!
A Minion has something to tell you.
Props
tone'info' | 'success' | 'warning' | 'danger'Default:'info'Color and ARIA role.
titleReactNodeBold heading.
onClose() => voidMakes the alert dismissible.
iconReactNodeDefault:InfoIconLeading icon.
classNamestringDefault:''Extra classes for the root element.
childrenReactNodeContent.
| Prop | Type | Default | Description |
|---|---|---|---|
tone | 'info' | 'success' | 'warning' | 'danger' | 'info' | Color and ARIA role. |
title | ReactNode | – | Bold heading. |
onClose | () => void | – | Makes the alert dismissible. |
icon | ReactNode | InfoIcon | Leading icon. |
className | string | '' | Extra classes for the root element. |
children | ReactNode | – | Content. |