Components
SelectItem
API Reference

API Reference

NOTE: Exotic components are not callable.

Parameters

props

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

Props

asChild (optional)

Enable children composition

  • Type: boolean

  • Default: false

hideOnClick (optional)

Whether to hide the select when this item is clicked. By default, it's true when the value prop is also provided.

  • Type: boolean

  • Default: true

value (optional)

Option value

  • Type: string