TextField

A text input, single-line unless variant is "longText". Bind value with { "@path": "/x" } to read what the user typed. Give it a label.

Examples

Loading examples…

Props

PropTypeDescription
checksobject[]Validation rules. The control shows the first failed one
valuestring | numberBind it with { "@path": "/x" } to read what the user typed
placeholderstring
labelstringThe visible label of the field. Always set it
variant"shortText" | "longText" | "number" | "obscured" | "email" | "url" | "tel"Default "shortText". "longText" is a multi-line field, "obscured" a password
weightnumberflex-grow in a Row or Column
namestring
requiredboolean
disabledboolean
invalidboolean
size"sm" | "md" | "lg" | "xl"Default "xl"
pillbooleanDefault true
autoSelectboolean
maskstring

Link to TextField · All standard components

On this page