Esc
Documentation
On this page

Props

PropTypeDefaultDescription
name requiredstringNoneField name
labelstringNoneLabel text
valuestringNoneControlled value
onChange(value: string) => voidNoneChange callback (browser only)
placeholderstringNonePlaceholder text
secretbooleanNoneMask input (password field)

Example

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

View the source on GitHub