Repository navigation
UpperCase in a textfield #33768
Answered
by
tudorpopams
LostButFound
asked this question in
General
|
I can't seem to find how you make what's typed into a textfield uppercase. Any help appreciated. |
Answered by
tudorpopams
Jun 16, 2025
Replies: 2 comments
|
Could you please add more details? What component you use and ideally with a link on a stackblitz. |
0 replies
|
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" /> |
0 replies
Answer selected by
ValentinaKozlova
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: