Dropdown select

The DropDownSelect utility component can be used to to simply create a dropdown select component.

Props

NameDescriptionType
iconIcon to be shown next to the label of the selected itemstring | undefined
defaultSelectedLabelLabel to be shown on defaultstring
defaultSelectedIndexSets the default selected optionnumber
handleSelectHandler to handle the selected option(index: number) => void
childrenDropDownSelectOptionReactElement<DropDownSelectOptionProps> | ReactElement<DropDownSelectOptionProps[]>

You can provide the DropdownSelectOption as a child to the DropdownSelect

NameDescriptionType
labelstring
selectedboolean | undefined
iconstring
© Getstream.io, Inc. All Rights Reserved.