Skip to content

Commit

Permalink
update api docs of Select
Browse files Browse the repository at this point in the history
  • Loading branch information
hbjORbj committed Apr 9, 2023
1 parent bb9659a commit 8143e85
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions docs/pages/joy-ui/api/select.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@
"description": "'sm'<br>&#124;&nbsp;'md'<br>&#124;&nbsp;'lg'<br>&#124;&nbsp;string"
}
},
"slots": {
"type": {
"name": "shape",
"description": "{ button?: elementType, endDecorator?: elementType, indicator?: elementType, listbox?: elementType, root?: elementType, startDecorator?: elementType }"
}
},
"startDecorator": { "type": { "name": "node" } },
"sx": {
"type": {
Expand Down
1 change: 1 addition & 0 deletions docs/translations/api-docs-joy/select/select.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 <a href=\"/joy-ui/customization/themed-components/#extend-sizes\">Themed components—Extend sizes</a>.",
"slots": "The components used for each slot inside. See <a href=\"#slots\">Slots API</a> 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 <a href=\"/system/getting-started/the-sx-prop/\">`sx` page</a> for more details.",
"value": "The selected value. Set to <code>null</code> to deselect all options.",
Expand Down
3 changes: 2 additions & 1 deletion packages/mui-joy/src/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8143e85

Please sign in to comment.