diff --git a/docs/pages/material-ui/api/badge.json b/docs/pages/material-ui/api/badge.json index 9f3612604ff53f..4d595eb5daa2d3 100644 --- a/docs/pages/material-ui/api/badge.json +++ b/docs/pages/material-ui/api/badge.json @@ -22,7 +22,7 @@ "type": { "name": "shape", "description": "{ Badge?: elementType, Root?: elementType }" }, "default": "{}", "deprecated": true, - "deprecationInfo": "use the slots prop instead. This prop will be removed in v7. How to migrate." + "deprecationInfo": "use the slotProps prop instead. This prop will be removed in v7. How to migrate." }, "componentsProps": { "type": { @@ -68,6 +68,20 @@ }, "name": "Badge", "imports": ["import Badge from '@mui/material/Badge';", "import { Badge } from '@mui/material';"], + "slots": [ + { + "name": "badge", + "description": "", + "default": "", + "class": null + }, + { + "name": "root", + "description": "", + "default": "", + "class": null + } + ], "classes": [ { "key": "anchorOriginBottomLeft", diff --git a/docs/translations/api-docs/badge/badge.json b/docs/translations/api-docs/badge/badge.json index 8b765118a3a5f6..f5f22625daf8cf 100644 --- a/docs/translations/api-docs/badge/badge.json +++ b/docs/translations/api-docs/badge/badge.json @@ -12,10 +12,10 @@ "description": "The component used for the root node. Either a string to use a HTML element or a component." }, "components": { - "description": "The components used for each slot inside.
This prop is an alias for the slots prop. It's recommended to use the slots prop instead." + "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.
This prop is an alias for the slotProps prop. It's recommended to use the slotProps prop instead, as componentsProps will be deprecated in the future." + "description": "The extra props for the slot components. You can override the existing props or add new ones." }, "invisible": { "description": "If true, the badge is invisible." }, "max": { "description": "Max count to show." }, @@ -23,9 +23,9 @@ "showZero": { "description": "Controls whether the badge is hidden when badgeContent is zero." }, - "slotProps": { "description": "The props used for each slot inside the Badge." }, + "slotProps": { "description": "The props used for each slot inside." }, "slots": { - "description": "The components used for each slot inside the Badge. Either a string to use a HTML element or a component." + "description": "The components used for each slot inside." }, "sx": { "description": "The system prop that allows defining system overrides as well as additional CSS styles." @@ -153,5 +153,9 @@ "nodeName": "the badge span element", "conditions": "variant=\"standard\"" } + }, + "slotDescriptions": { + "badge": "", + "root": "" } }