Components
FieldMessage
Code

FieldMessage

NOTE: Exotic components are not callable.

Parameters

props

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

Props

error (optional)

Whether the field contains an error or not

  • Type: boolean

  • Default: false

errorText (optional)

Error text message

  • Type: @types/react.React.ReactNode

helpText (optional)

Help text message

  • Type: @types/react.React.ReactNode

View source (opens in a new tab)