PencilKit-style ink
for NitroUI.
Pressure- and tilt-sensitive inks, erasers, lasso, ruler, zoom, undo and PNG, JPEG, SVG and PDF export. One C++ ink engine on tgfx; touches never cross into JavaScript.
bun add nitro-ui-sketchEverything a drawing app needs
A canvas, a tool picker and a document model that also works headless.
Seven inks
Pen, monoline, fountain pen, marker, pencil, crayon and watercolor.
A palette you can theme
Drawn instruments, swatches, widths and undo, on Liquid Glass on iOS 26.
Export anywhere
PNG, JPEG, SVG and PDF, rendered off the JavaScript thread, with or without a canvas.
One ink engine
Metal on iOS, OpenGL ES on Android. Touch input stays native.
Built like PencilKit
The tools people expect from a notes app, on both platforms.
Stroke and pixel erasers
Remove whole strokes, or cut away only the parts you touch.
Lasso selection
Move, delete, duplicate and recolour strokes; select them from code too.
Ruler
A straightedge that strokes follow, resting on multiples of 45°.
Zoom and pan
Pinch zoom within your limits over any content size.
Undo and redo
100 steps per drawing, with clear, delete and recolour as one step each.
Stylus first
Pressure, tilt and palm rejection, plus a stylus-only drawing policy.
Liquid Glass
The picker sits on glass on iOS 26 and later, with solid fallbacks.
Save and load
Serialize strokes to a compact binary format and restore them.
A few props, a whole app
Keep the tool and the drawing in state; the canvas and the picker do the rest.
Read the guidesconst [drawing] = useState(() => new Drawing())
<SketchCanvas
layout={{ flex: 1 }}
drawing={drawing}
tool={{ type: 'ink', ink: 'pen', color: 0x1e88e5ff, width: 4 }}
maximumZoom={8}
onDrawingChange={(d) => setCount(d.strokeCount)}
/>
Draw on iOS and Android today.
Add the package, run nitro-ui prepare, and drop a SketchCanvas into your app.