Components
<TextInput />
A string input field.


This component is returned by
useForm()
.Props
label : string
The label of the input field.
name : string
The path to the string
value of the input field in your form schema.
e.g. "name"
, "shipping.address.street"
type?: "text" | "email" | "password" | "tel" | "url"
The type of the input field.
They roughly correspond to the HTML types
text
,
email
,
password
,
tel
, and
url
.
Defaults to "text"
.
Useful on mobile devices with virtual keyboards.
placeholder? : string
An optional placeholder text for your input.
disabled? : boolean
Whether or not the field should be disabled.
Defaults to false
(not disabled).
Was this page helpful?