/
githubmirror
/
material-ui
Обзор
Документация
Войти
/
githubmirror
/
material-ui
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
docs/translations/api-docs/chip/chip.json
131 строка
6 KB
Albert Yu
[ButtonBase] Add `nativeButton` prop (#47989)
26 мар 2026, 18:09
Не верифицирован
26 мар 2026, 18:09
da873f0
Код
Авторство
О чём код?
{ "componentDescription": "Chips represent complex entities in small blocks, such as a contact.", "propDescriptions": { "avatar": { "description": "The Avatar element to display." }, "children": { "description": "This prop isn't supported. Use the <code>component</code> prop if you need to change the children structure." }, "classes": { "description": "Override or extend the styles applied to the component." }, "clickable": { "description": "If <code>true</code>, the chip will appear clickable, and will raise when pressed, even if the onClick prop is not defined. If <code>false</code>, the chip will not appear clickable, even if onClick prop is defined. This can be used, for example, along with the component prop to indicate an anchor Chip is clickable. Note: this controls the UI and does not affect the onClick event." }, "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." }, "deleteIcon": { "description": "Override the default delete icon element. Shown only if <code>onDelete</code> is set." }, "disabled": { "description": "If <code>true</code>, the component is disabled." }, "icon": { "description": "Icon element." }, "label": { "description": "The content of the component." }, "nativeButton": { "description": "If <code>true</code>, the component is expected to resolve to a native <code><button></code> element. When omitted, custom components inherit the default button semantics of the current wrapper. Set to <code>true</code> when a custom component resolves to a native <code><button></code>, or <code>false</code> when it resolves to a non-button host." }, "onDelete": { "description": "Callback fired when the delete icon is clicked. If set, the delete icon will be shown." }, "size": { "description": "The size of the component." }, "skipFocusWhenDisabled": { "description": "If <code>true</code>, allows the disabled chip to escape focus. If <code>false</code>, allows the disabled chip to receive focus." }, "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": { "avatar": { "description": "Styles applied to {{nodeName}}.", "nodeName": "the avatar element" }, "clickable": { "description": "Styles applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "<code>onClick</code> is defined or <code>clickable={true}</code>" }, "colorDefault": { "description": "Styles applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "<code>color=\"default\"</code>" }, "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>" }, "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>" }, "deletable": { "description": "Styles applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "<code>onDelete</code> is defined" }, "deleteIcon": { "description": "Styles applied to {{nodeName}}.", "nodeName": "the deleteIcon element" }, "disabled": { "description": "State class applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "<code>disabled={true}</code>" }, "filled": { "description": "Styles applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "<code>variant=\"filled\"</code>" }, "focusVisible": { "description": "State class applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "keyboard focused" }, "icon": { "description": "Styles applied to {{nodeName}}.", "nodeName": "the icon element" }, "outlined": { "description": "Styles applied to {{nodeName}} if {{conditions}}.", "nodeName": "the root element", "conditions": "<code>variant=\"outlined\"</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>" } }, "slotDescriptions": { "label": "The component that renders the label.", "root": "The component that renders the root." } }