/
githubmirror
/
material-ui
Обзор
Документация
Войти
/
githubmirror
/
material-ui
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
docs/translations/api-docs/alert/alert.json
83 строки
4 KB
Silviu Alexandru Avram
[alert] Remove deprecated classes (#48011)
19 мар 2026, 12:52
Не верифицирован
19 мар 2026, 12:52
e2e86ef
Код
Авторство
О чём код?
{ "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 <em>close popup</em> icon button.<br>For localization purposes, you can use the provided <a href=\"https://mui.com/material-ui/guides/localization/\">translations</a>." }, "color": { "description": "The color of the component. Unless provided, the value is taken from the <code>severity</code> prop. It supports both default and custom theme colors, which can be added as shown in the <a href=\"https://mui.com/material-ui/customization/palette/#custom-colors\">palette customization guide</a>." }, "icon": { "description": "Override the icon displayed before the children. Unless provided, the icon is mapped to the value of the <code>severity</code> prop. Set to <code>false</code> to remove the <code>icon</code>." }, "iconMapping": { "description": "The component maps the <code>severity</code> prop to a range of different icons, for instance success to <code><SuccessOutlined></code>. If you wish to change this mapping, you can provide your own. Alternatively, you can use the <code>icon</code> prop to override the icon displayed." }, "onClose": { "description": "Callback fired when the component requests to be closed. When provided and no <code>action</code> 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": "<code>color=\"error\"</code>" }, "colorInfo": { "description": "Styles applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "<code>color=\"info\"</code>" }, "colorSuccess": { "description": "Styles applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "<code>color=\"success\"</code>" }, "colorWarning": { "description": "Styles applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "<code>color=\"warning\"</code>" }, "filled": { "description": "Styles applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "<code>variant=\"filled\"</code>" }, "outlined": { "description": "Styles applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "<code>variant=\"outlined\"</code>" }, "standard": { "description": "Styles applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "<code>variant=\"standard\"</code>" } }, "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." } }