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