Text Field
Live preview and documentation for the Text Field component.
Preview
componentPreview.loading
About
The design system's text input field (single or multi-line), with form validation, prefix/suffix icons, and a stable height.
variant:primary(default, filled + border + shadow),secondary(elevated background, no shadow),flat(flat border, no shadow, ideal for auth screens),tonal(surfaceSecondarybackground, no border), orembedded(transparent, no border/shadow — used insideTextFieldGroup)contentType:text(default),email,password(adds a show/hide toggle), orphone(numeric keyboard + digit formatter)label/showRequiredIndicator: field label and optional red asteriskdescription/errorText/isInvalid: help text and error stateprefix/suffix: widgets on the sides (icons, buttons)maxLength: shows a character countermaxLines/minLines: single-line field (default) or multi-lineenabled/readOnly/autofocus/obscureText: standard statesvalidator/onSaved/onChanged/onSubmitted: form integrationfocusBorder/forceFocusBorder: controls whether the focus (accent) border appears;forceFocusBorderpaints the field as "active" without it actually being focused (used by composite triggers likeDatePicker)
Single-line height is fixed at 45px (singleLineHeight), matching the medium KasyButton, to keep visual consistency between fields and buttons.
Last updated on 08/23/2026

