@mocanvas/mocanvas · function

TldrawUiSelectItem

declare function TldrawUiSelectItem<T = string>({ value, disabled, className, children }: TLUiSelectItemProps<T>): react.JSX.Element

One option.

Registers its own rendered label against its value on every render, so TldrawUiSelectValue can show the trigger's current choice with the same markup the list uses — icon included — instead of the bare value.

Mentioned here

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.