Builtin component

TextInput

Text input field.

Props

PropTypeDefaultDescription
namestring—Field name
labelstring—Label text
valuestring—Controlled value
onChange(value: string) => void—Change callback (browser only)
placeholderstring—Placeholder text
secretboolean—Mask input (password field)

Example

TextInput({ name: "host", label: "Host", placeholder: "localhost" })
TextInput({ name: "token", label: "Token", secret: true })