@mocanvas/editor · interface
interface TLCanvasComponentPropsWhat the Canvas component slot is handed.
A host replacing the canvas gets only presentation: a class name and
children. It deliberately does *not* receive the editor as a prop — the
replacement is rendered inside the editor's provider and reads it with
useEditor(), so a slot cannot be rendered against a different editor than
the one it is inside of.
Properties · 2
children?: ReactNodeclassName?: stringMentioned 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.