UpperCase in a textfield #33768
-
|
I can't seem to find how you make what's typed into a textfield uppercase. Any help appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Could you please add more details? What component you use and ideally with a link on a stackblitz. |
Beta Was this translation helpful? Give feedback.
-
|
The FluentUI TextField component itself does not provide a direct prop or built-in feature to transform the text to uppercase. However, you can achieve uppercase text inside a TextField by applying the .uppercaseInput input {
text-transform: uppercase;
}Then use this class in your TextField component: <TextField className="uppercaseInput" label="Uppercase Text" /> |
Beta Was this translation helpful? Give feedback.
The FluentUI TextField component itself does not provide a direct prop or built-in feature to transform the text to uppercase. However, you can achieve uppercase text inside a TextField by applying the
text-transformcss property to the input element:Then use this class in your TextField component: