@mocanvas/editor · function

HTMLContainer

declare function HTMLContainer({ children, className, style, ...rest }: HTMLContainerProps): react.JSX.Element

The DOM body of a shape. Fills the shape's bounds; anything else — size, pointer-events, overflow, a class of your own — is set through style and className, which are merged over the defaults rather than replacing them.

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.