diff --git a/docs/pages/joy-ui/api/select.json b/docs/pages/joy-ui/api/select.json index 22d30220b2fe3d..bc07469be9958e 100644 --- a/docs/pages/joy-ui/api/select.json +++ b/docs/pages/joy-ui/api/select.json @@ -34,6 +34,12 @@ "description": "'sm'
| 'md'
| 'lg'
| string" } }, + "slots": { + "type": { + "name": "shape", + "description": "{ button?: elementType, endDecorator?: elementType, indicator?: elementType, listbox?: elementType, root?: elementType, startDecorator?: elementType }" + } + }, "startDecorator": { "type": { "name": "node" } }, "sx": { "type": { diff --git a/docs/translations/api-docs-joy/select/select.json b/docs/translations/api-docs-joy/select/select.json index 248700b6cbed27..a362701dee65df 100644 --- a/docs/translations/api-docs-joy/select/select.json +++ b/docs/translations/api-docs-joy/select/select.json @@ -20,6 +20,7 @@ "placeholder": "Text to show when there is no selected value.", "renderValue": "Function that customizes the rendering of the selected value.", "size": "The size of the component. To learn how to add custom sizes to the component, check out Themed components—Extend sizes.", + "slots": "The components used for each slot inside. See Slots API below for more details.", "startDecorator": "Leading adornment for the select.", "sx": "The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.", "value": "The selected value. Set to null to deselect all options.", diff --git a/packages/mui-joy/src/Select/Select.tsx b/packages/mui-joy/src/Select/Select.tsx index 05817f89b6e134..c9684dbcbe7a30 100644 --- a/packages/mui-joy/src/Select/Select.tsx +++ b/packages/mui-joy/src/Select/Select.tsx @@ -761,7 +761,8 @@ Select.propTypes /* remove-proptypes */ = { PropTypes.string, ]), /** - * @ignore + * The components used for each slot inside. + * @default {} */ slots: PropTypes.shape({ button: PropTypes.elementType,