Skip to content

UpperCase in a textfield #33768

Discussion options

You must be logged in to vote

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-transform css property to the input element:

.uppercaseInput input {
  text-transform: uppercase;
}

Then use this class in your TextField component:

<TextField className="uppercaseInput" label="Uppercase Text" />

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ValentinaKozlova
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants