Components
SelectField
Code

SelectField

Select fields allow merchants to choose a single option from a list that includes between five and seven values.

<SelectField label="Label" helpText="Help text" errorText="Error text">
  <option>option</option>
  <option>option</option>
  <option>option</option>
</SelectField>

Parameters

props

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

Props

disabled (optional)

  • Type: boolean

error (optional)

  • Type: boolean

errorText (optional)

  • Type: @types/react.React.ReactNode

helpText (optional)

  • Type: @types/react.React.ReactNode

label (optional)

  • Type: @types/react.React.ReactNode

optional (optional)

  • Type: boolean

View source (opens in a new tab)