TextInput
Text input field.
On this page
Props
| Prop | Type | Default | Description |
|---|---|---|---|
name required | string | None | Field name |
label | string | None | Label text |
value | string | None | Controlled value |
onChange | (value: string) => void | None | Change callback (browser only) |
placeholder | string | None | Placeholder text |
secret | boolean | None | Mask input (password field) |
Example
ts
TextInput({ name: "host", label: "Host", placeholder: "localhost" })
TextInput({ name: "token", label: "Token", secret: true })