/
githubmirror
/
material-ui
Обзор
Документация
Войти
/
githubmirror
/
material-ui
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
docs/translations/api-docs/button/button.json
176 строк
8 KB
Silviu Alexandru Avram
[button] Remove deprecated classes (#48012)
19 мар 2026, 12:53
Не верифицирован
19 мар 2026, 12:53
9b7cd07
Код
Авторство
О чём код?
{ "componentDescription": "", "propDescriptions": { "children": { "description": "The content of the component." }, "classes": { "description": "Override or extend the styles applied to the component." }, "color": { "description": "The color of the component. 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>." }, "component": { "description": "The component used for the root node. Either a string to use a HTML element or a component." }, "disabled": { "description": "If <code>true</code>, the component is disabled." }, "disableElevation": { "description": "If <code>true</code>, no elevation is used." }, "disableFocusRipple": { "description": "If <code>true</code>, the keyboard focus ripple is disabled." }, "disableRipple": { "description": "If <code>true</code>, the ripple effect is disabled.<br>⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure to highlight the element by applying separate styles with the <code>.Mui-focusVisible</code> class." }, "endIcon": { "description": "Element placed after the children." }, "fullWidth": { "description": "If <code>true</code>, the button will take up the full width of its container." }, "href": { "description": "The URL to link to when the button is clicked. If defined, an <code>a</code> element will be used as the root node." }, "loading": { "description": "If <code>true</code>, the loading indicator is visible and the button is disabled. If <code>true | false</code>, the loading wrapper is always rendered before the children to prevent <a href=\"https://github.com/mui/material-ui/issues/27853\">Google Translation Crash</a>." }, "loadingIndicator": { "description": "Element placed before the children if the button is in loading state. The node should contain an element with <code>role="progressbar"</code> with an accessible name. By default, it renders a <code>CircularProgress</code> that is labeled by the button itself." }, "loadingPosition": { "description": "The loading indicator can be positioned on the start, end, or the center of the button." }, "size": { "description": "The size of the component. <code>small</code> is equivalent to the dense button styling." }, "startIcon": { "description": "Element placed before the children." }, "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>" }, "colorInherit": { "description": "Styles applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "<code>color=\"inherit\"</code>" }, "colorPrimary": { "description": "Styles applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "<code>color=\"primary\"</code>" }, "colorSecondary": { "description": "Styles applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "<code>color=\"secondary\"</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>" }, "contained": { "description": "Styles applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "<code>variant=\"contained\"</code>" }, "disabled": { "description": "State class applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "<code>disabled={true}</code>" }, "disableElevation": { "description": "Styles applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "<code>disableElevation={true}</code>" }, "endIcon": { "description": "Styles applied to {{nodeName}} if {{conditions}}.", "nodeName": "the endIcon element", "conditions": "supplied" }, "focusVisible": { "description": "State class applied to {{nodeName}} if {{conditions}}.", "nodeName": "the ButtonBase root element", "conditions": "the button is keyboard focused" }, "fullWidth": { "description": "Styles applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "<code>fullWidth={true}</code>" }, "icon": { "description": "Styles applied to the icon element if supplied" }, "loading": { "description": "Styles applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "<code>loading={true}</code>" }, "loadingIconPlaceholder": { "description": "Styles applied to {{nodeName}}.", "nodeName": "the loadingIconPlaceholder element" }, "loadingIndicator": { "description": "Styles applied to {{nodeName}}.", "nodeName": "the loadingIndicator element" }, "loadingPositionCenter": { "description": "Styles applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "<code>loadingPosition=\"center\"</code>" }, "loadingPositionEnd": { "description": "Styles applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "<code>loadingPosition=\"end\"</code>" }, "loadingPositionStart": { "description": "Styles applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "<code>loadingPosition=\"start\"</code>" }, "loadingWrapper": { "description": "Styles applied to {{nodeName}}.", "nodeName": "the loadingWrapper element" }, "outlined": { "description": "Styles applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "<code>variant=\"outlined\"</code>" }, "root": { "description": "Styles applied to the root element." }, "sizeLarge": { "description": "Styles applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "<code>size=\"large\"</code>" }, "sizeMedium": { "description": "Styles applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "<code>size=\"medium\"</code>" }, "sizeSmall": { "description": "Styles applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "<code>size=\"small\"</code>" }, "startIcon": { "description": "Styles applied to {{nodeName}} if {{conditions}}.", "nodeName": "the startIcon element", "conditions": "supplied" }, "text": { "description": "Styles applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "<code>variant=\"text\"</code>" } } }