Function text

Specifies a text input

text('First Name', {validate:v=>v.length>0, placeholder:'Enter your first name'})
  • Parameters

    • label: string
    • Optionalprops: Partial<TextFormInput<string>>

    Returns TextFormInput<string>