Skip to main content

Select

The Select component is a Radix UI based dropdown menu for selecting options.

Example

Props

NameDescriptionType/Value
classNameAdditional classes for stylingString
childrenThe content of the selectReactNode
valueControlled value of the selectString
defaultValueDefault value of the selectString
placeholderPlaceholder text for the select valueString
onValueChangeCallback for when the value changesFunction
positionControls the position of the dropdown
  • 'item-aligned'
  • 'popper'
disabledDisables the selectBoolean

Customization

The approach for customization will vary depending on if the customization is intended to be global for all consumers of the UI component or if it is only an override for a particular instance.

  • If the customization is necessary for all use cases, update the component source code in the UI library package directly.
  • Otherwise, pass className overrides.