Skip to content

Commit

Permalink
Updated inputlabel size prop
Browse files Browse the repository at this point in the history
  • Loading branch information
perkrlsn-zimpler committed Feb 7, 2025
1 parent f8319d1 commit 15739d7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions docs/pages/material-ui/api/input-label.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
"size": {
"type": {
"name": "union",
"description": "'normal'<br>&#124;&nbsp;'small'<br>&#124;&nbsp;string"
"description": "'medium'<br>&#124;&nbsp;'small'<br>&#124;&nbsp;string"
},
"default": "'normal'"
"default": "'medium'"
},
"sx": {
"type": {
Expand Down
4 changes: 2 additions & 2 deletions packages/mui-material/src/InputLabel/InputLabel.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ export interface InputLabelOwnProps extends Pick<FormLabelProps, 'children'> {
shrink?: boolean;
/**
* The size of the component.
* @default 'normal'
* @default 'medium'
*/
size?: OverridableStringUnion<'small' | 'normal', InputLabelPropsSizeOverrides>;
size?: OverridableStringUnion<'small' | 'medium', InputLabelPropsSizeOverrides>;
/**
* The system prop that allows defining system overrides as well as additional CSS styles.
*/
Expand Down
6 changes: 3 additions & 3 deletions packages/mui-material/src/InputLabel/InputLabel.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const useUtilityClasses = (ownerState) => {
formControl && 'formControl',
!disableAnimation && 'animated',
shrink && 'shrink',
size && size !== 'normal' && `size${capitalize(size)}`,
size && size !== 'medium' && `size${capitalize(size)}`,
variant,
],
asterisk: [required && 'asterisk'],
Expand Down Expand Up @@ -280,10 +280,10 @@ InputLabel.propTypes /* remove-proptypes */ = {
shrink: PropTypes.bool,
/**
* The size of the component.
* @default 'normal'
* @default 'medium'
*/
size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([
PropTypes.oneOf(['normal', 'small']),
PropTypes.oneOf(['medium', 'small']),
PropTypes.string,
]),
/**
Expand Down

0 comments on commit 15739d7

Please sign in to comment.