Skip to content

Form Field: Text Input

Type: text

Generic single-line text input field.

javascript
{
  id: 'username',
  type: 'text',
  label: 'Username',
  placeholder: 'Enter username...',
  defaultValue: '',
  required: false,
  disabled: false,
  minLength: 3,
  maxLength: 50,
  matchRegex: '^[A-Z].*' // Regex pattern
}
PropertyTypeDescription
placeholderstringField placeholder
minLengthnumberMinimum required length.
maxLengthnumberMaximum allowed length.
matchRegexstringRegular expression pattern for advanced validation.