@mocanvas/mocanvas · function

TldrawUiPopoverTrigger

declare function TldrawUiPopoverTrigger({ label, className, children }: TLUiPopoverTriggerProps): react.JSX.Element

The control that opens the panel.

Wraps its children in a button rather than cloning them, so a caller can put whatever it likes inside without the trigger having to guess which prop on an unknown element is the click handler.

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.