Alert
Alert messages are meant to provide contextual feedback about important changes in the interface.
Name | Type | Description | Default |
---|---|---|---|
type | 'info' | 'confirm' | 'warning' | 'error' | Uses one of the available alert types. | 'info' |
mode | 'inline' | 'modal' | Uses one of the available alert modes:
| 'inline' |
inlineText | string | Message of the alert. | - |
onClose | () => void | If defined, a close button will be displayed and this function will be executed when the action is clicked. When mode="modal" this function will also be executed when the background overlay is clicked. The user has the responsibility of hiding the modal, otherwise it will remain visible. | - |
children | React.ReactNode | The details section of the alert. Can be used to render custom content in this area. | - |
margin | 'xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | Margin | Size of the margin to be applied to the component. You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes. | - |
size | 'small' | 'medium' | 'large' | 'fillParent' | 'fitContent' | Size of the component. | 'fitContent' |
tabIndex | number | Value of the tabindex attribute applied to the close button. | 0 |