Text input
Overview
The Text input component is an input field for a single line of text. The component supports required field validation, minimum/maximum length, and regular expression patterns.

Properties
name
string
Component name
value
value
Current component value
valid
boolean
Indicates if the component is valid
validating
boolean
Indicates if the component is validating
disabled
boolean
Indicates whether the component is disabled
Methods
setValue
value: string
void
Set component value
setDisabled
disabled: boolean
void
Disable or enable the component
reset
–
void
Reset component to the initial value
validate
–
void
Trigger component validation
focus
–
void
Set focus on the component
resetValidation
–
void
Clear validation errors
setErrors
errors: string |
string[] | null
void
Mark the component as invalid and display errors
setRequired
required: boolean
void
Set component required state
Triggers
On Change
Triggered when the component's state changes
On Init
Triggered when the component is initialized
On Enter
Triggered when the Enter key is pressed
On Focus
Triggered when the component is in focus
On Blur
Triggered when the component loses focus
Last updated
Was this helpful?