Components
TextInput
Code

TextInput

NOTE: Exotic components are not callable.

Parameters

props

  • Type: @vtex/shoreline-components.TextInputProps & @types/react.React.RefAttributes<typescript.HTMLInputElement>

Props

disabled (optional)

Whether is disabled or not

  • Type: boolean

  • Default: false

error (optional)

Whether there is an error

  • Type: boolean

  • Default: false

errorText (optional)

  • Type: string

helpText (optional)

  • Type: string

label

  • Type: @types/react.React.ReactNode

optional (optional)

  • Type: boolean

prefix (optional)

Node added before input space

  • Type: @types/react.React.ReactNode

suffix (optional)

Node added before input space

  • Type: @types/react.React.ReactNode

View source (opens in a new tab)