Skip to content

Commit

Permalink
update textfield doc
Browse files Browse the repository at this point in the history
  • Loading branch information
sai6855 committed Dec 3, 2024
1 parent 418e888 commit a4bd8d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/data/material/components/text-fields/text-fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ In some circumstances, we can't determine the "shrink" state (number input, date
To workaround the issue, you can force the "shrink" state of the label.

```jsx
<TextField InputLabelProps={{ shrink: true }} />
<TextField slotProps={{ inputLabel: { shrink: true } }} />
```

or
Expand Down

0 comments on commit a4bd8d5

Please sign in to comment.