@mocanvas/editor · function

DefaultSvgDefs

declare function DefaultSvgDefs({ children }: {
    children?: ReactNode;
}): react.JSX.Element

The document-level <defs>: the one place a shape can put a gradient, filter or marker that every instance of it shares.

Rendered once per editor, above the canvas but with no size of its own, so a shape body can reference url(#…) by a useSharedSafeId name.

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.