DocMosaicdocs
Primitives

Editor.Ruler

Tick-mark rulers along the top and left edges of the canvas.

Tick-mark rulers along the top and left edges of the canvas.

Usage

import { Editor } from '@docmosaic/react';

<Editor.Root>
    <Editor.Ruler />
</Editor.Root>;

API Reference

PropTypeDefaultDescription
classNamestring | undefined-

Optional extra className applied to the outer container.

unitenum-

Override the display unit. Falls back to display.rulerUnit from the editor context (defaults to 'pt').

  • Root - the orchestrator