Skip to content

Commit

Permalink
[material-ui][TextField] Add size default prop to api docs (#44714)
Browse files Browse the repository at this point in the history
  • Loading branch information
sai6855 authored Dec 11, 2024
1 parent 3a8ceae commit e3d0e26
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/pages/material-ui/api/text-field.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@
"type": {
"name": "union",
"description": "'medium'<br>&#124;&nbsp;'small'<br>&#124;&nbsp;string"
}
},
"default": "'medium'"
},
"slotProps": {
"type": {
Expand Down
1 change: 1 addition & 0 deletions packages/mui-material/src/TextField/TextField.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ export interface BaseTextFieldProps
SelectProps?: Partial<SelectProps>;
/**
* The size of the component.
* @default 'medium'
*/
size?: OverridableStringUnion<'small' | 'medium', TextFieldPropsSizeOverrides>;
/**
Expand Down
1 change: 1 addition & 0 deletions packages/mui-material/src/TextField/TextField.js
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,7 @@ TextField.propTypes /* remove-proptypes */ = {
SelectProps: PropTypes.object,
/**
* The size of the component.
* @default 'medium'
*/
size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([
PropTypes.oneOf(['medium', 'small']),
Expand Down

0 comments on commit e3d0e26

Please sign in to comment.