Upper Case
Convert a value to uppercase
Upper Case
The upperCase formatter converts a value to uppercase.
Usage
validationSchema: {
code: { format: "upperCase" },
}Result
| Input | Result |
|---|---|
abc123 | ABC123 |
Things to know
- Often combined with the
trimstep and applied on blur:
name: { format: [{ type: "trim", trigger: "onBlur", options: { mode: "both" } }, "upperCase"] }- The equivalent
normalize: "uppercase"preset runs on every change instead.