Skip to content

Input

A single-line text field.

Group: Inputs · Kind: native · in the lite catalog

example
type · text
type · password
type · number
type · search
type · url
type · tel
disabled · true
label · none

Open in the playground

The same specimen painted by React, SwiftUI, Compose and gpui.

exponential-ui-input on Web
exponential-ui-input on iOS
exponential-ui-input on Android
exponential-ui-input on Desktop
Prop Type Required Bindable Description
label string yes – The field label.
name string yes – The field’s key in the submitted data.
type text | email | password | number | search | url | tel – – The keyboard and masking kind. Default "text".
placeholder string – – Hint text while empty.
value string – yes The text; bind it to a data path.
disabled boolean – – Shows it inert. Default false.
checks [check] – – Validation rules (required, email, length, regex, numeric).
validateOn change | blur | submit – – When the checks run. Default "blur".
  • on.change: runs an action
  • on.submit: runs an action
  • on.focus: runs an action
  • on.blur: runs an action

None.

none

The basic catalog’s TextField renders as Input.

A native component: every renderer paints it directly.

Role: textbox

textbox

Keys Action
Enter submit (fires submit, submits the Form)

Recipe parts: Input/root Input/label Input/field Input/placeholder Input/description Input/error

Keyed by: type disabled :hover :pressed :focus :disabled :checked :open :selected :invalid :dragover

Themes · Write a theme

Form · FieldGroup · FormActions · Textarea · NumberField · Checkbox · Radio · ChoiceTiles