AlertProps
Types
Properties
Override or extend the styles applied to the component.
The component that renders the close button.
The component that renders the close icon.
The color of the component. Unless provided, the value is taken from the severity
prop. It supports both default and custom theme colors, which can be added as shown in the palette customization guide.
The components used for each slot inside.
The extra props for the slot components. You can override the existing props or add new ones.
The component maps the severity
prop to a range of different icons, for instance success to <SuccessOutlined>
. If you wish to change this mapping, you can provide your own. Alternatively, you can use the icon
prop to override the icon displayed.
Callback fired when the component requests to be closed. When provided and no action
prop is set, a close icon button is displayed that triggers the callback when clicked.
The variant to use.