Function: Select

Select<T>(props): Element

A toolbar primitive you can use to build dropdowns, such as the block type select.

Type parameters

NameType
Textends string

Parameters

NameType
propsObject
props.items("separator" | { label: string | Element ; value: T })[]
props.onChange(value: T) => void
props.placeholderstring
props.triggerTitlestring
props.valueT

Returns

Element