Skip to main content
The @tsdraw/react package includes a toolbar and style panel, configurable via uiOptions.

Toolbar

Hiding

Layout

The parts option controls grouping:

Placement

Position relative to the edge:

Draggable

Pen mode indicator

When a stylus is detected, Pen mode is activated. This makes it easier for the user to draw using their pressure-sensitive display/stylus. The Pen control in the toolbar shows a small blue “P” badge during Pen mode. This is on by default. Hide it with:

Style panel

Click a bubble to open a context-style menu at the pointer with every choice together; the current value stays highlighted in the list.

Hiding

Placement

Custom elements

Add arbitrary overlays:

Theming

Cursors