@mocanvas/editor · interface

CanvasComponents

interface CanvasComponents

This one ships without a description. The signature above is read from the package, and the guides cover the area it belongs to.


Properties · 6

Background: (props: {
Brush: (props: {
ErrorFallback: ComponentType<TLErrorFallbackProps> | null

Rendered in place of the whole editor once it has thrown. null renders nothing — the choice a host with its own error UI outside the canvas wants, rather than two competing messages. Omitted uses DefaultErrorFallback.

Grid: ((props: TLGridProps) => ReactNode) | null

The grid, behind the scene. Rendered only in grid mode, and handed the camera and the document's step rather than reading them — see TLComponents.Grid. null draws none; omitted uses DefaultGrid.

Indicators: (props: {
ShapeErrorFallback: ComponentType<TLErrorFallbackProps> | null

Rendered in place of one shape whose body has thrown, at that shape's own bounds. null leaves a hole; omitted uses DefaultShapeErrorFallback.

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.