{ "componentDescription": "", "propDescriptions": { "action": { "description": "The action to display. It renders after the message, at the end of the alert." }, "children": { "description": "The content of the component." }, "classes": { "description": "Override or extend the styles applied to the component." }, "closeText": { "description": "Override the default label for the close popup icon button.
For localization purposes, you can use the provided translations." }, "color": { "description": "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." }, "components": { "description": "The components used for each slot inside." }, "componentsProps": { "description": "The extra props for the slot components. You can override the existing props or add new ones." }, "icon": { "description": "Override the icon displayed before the children. Unless provided, the icon is mapped to the value of the severity prop. Set to false to remove the icon." }, "iconMapping": { "description": "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." }, "onClose": { "description": "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.", "typeDescriptions": { "event": { "name": "event", "description": "The event source of the callback." } } }, "role": { "description": "The ARIA role attribute of the element." }, "severity": { "description": "The severity of the alert. This defines the color and icon used." }, "slotProps": { "description": "The props used for each slot inside." }, "slots": { "description": "The components used for each slot inside." }, "sx": { "description": "The system prop that allows defining system overrides as well as additional CSS styles." }, "variant": { "description": "The variant to use." } }, "classDescriptions": { "colorError": { "description": "Styles applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "color=\"error\"" }, "colorInfo": { "description": "Styles applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "color=\"info\"" }, "colorSuccess": { "description": "Styles applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "color=\"success\"" }, "colorWarning": { "description": "Styles applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "color=\"warning\"" }, "filled": { "description": "Styles applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "variant=\"filled\"" }, "filledError": { "description": "Styles applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "variant=\"filled\" and color=\"error\"", "deprecationInfo": "Combine the .MuiAlert-filled and .MuiAlert-colorError classes instead. See Migrating from deprecated APIs for more details." }, "filledInfo": { "description": "Styles applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "variant=\"filled\" and color=\"info\"", "deprecationInfo": "Combine the .MuiAlert-filled and .MuiAlert-colorInfo classes instead. See Migrating from deprecated APIs for more details." }, "filledSuccess": { "description": "Styles applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "variant=\"filled\" and color=\"success\"", "deprecationInfo": "Combine the .MuiAlert-filled and .MuiAlert-colorSuccess classes instead. See Migrating from deprecated APIs for more details." }, "filledWarning": { "description": "Styles applied to the root element if variant="filled" and color="warning"", "deprecationInfo": "Combine the .MuiAlert-filled and .MuiAlert-colorWarning classes instead. See Migrating from deprecated APIs for more details." }, "outlined": { "description": "Styles applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "variant=\"outlined\"" }, "outlinedError": { "description": "Styles applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "variant=\"outlined\" and color=\"error\"", "deprecationInfo": "Combine the .MuiAlert-outlined and .MuiAlert-colorError classes instead. See Migrating from deprecated APIs for more details." }, "outlinedInfo": { "description": "Styles applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "variant=\"outlined\" and color=\"info\"", "deprecationInfo": "Combine the .MuiAlert-outlined and .MuiAlert-colorInfo classes instead. See Migrating from deprecated APIs for more details." }, "outlinedSuccess": { "description": "Styles applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "variant=\"outlined\" and color=\"success\"", "deprecationInfo": "Combine the .MuiAlert-outlined and .MuiAlert-colorSuccess classes instead. See Migrating from deprecated APIs for more details." }, "outlinedWarning": { "description": "Styles applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "variant=\"outlined\" and color=\"warning\"", "deprecationInfo": "Combine the .MuiAlert-outlined and .MuiAlert-colorWarning classes instead. See Migrating from deprecated APIs for more details." }, "standard": { "description": "Styles applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "variant=\"standard\"" }, "standardError": { "description": "Styles applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "variant=\"standard\" and color=\"error\"", "deprecationInfo": "Combine the .MuiAlert-standard and .MuiAlert-colorError classes instead. See Migrating from deprecated APIs for more details." }, "standardInfo": { "description": "Styles applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "variant=\"standard\" and color=\"info\"", "deprecationInfo": "Combine the .MuiAlert-standard and .MuiAlert-colorInfo classes instead. See Migrating from deprecated APIs for more details." }, "standardSuccess": { "description": "Styles applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "variant=\"standard\" and color=\"success\"", "deprecationInfo": "Combine the .MuiAlert-standard and .MuiAlert-colorSuccess classes instead. See Migrating from deprecated APIs for more details." }, "standardWarning": { "description": "Styles applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "variant=\"standard\" and color=\"warning\"", "deprecationInfo": "Combine the .MuiAlert-standard and .MuiAlert-colorWarning classes instead. See Migrating from deprecated APIs for more details." } }, "slotDescriptions": { "action": "The component that renders the action slot.", "closeButton": "The component that renders the close button.", "closeIcon": "The component that renders the close icon.", "icon": "The component that renders the icon slot.", "message": "The component that renders the message slot.", "root": "The component that renders the root slot." } }