Kinetik UI

Signature Pad

.md

Sign with a finger: the ink is full when slow and thins with speed, with Undo and a Clear that fades it away.

v1.0.0Live on web@shopify/react-native-skiareact-native-gesture-handlerreact-native-reanimatedreact-native-worklets
Component preview

Installation

Kinetik CLI
npx kinetik-ui add signature-pad

The CLI copies the source and installs native dependencies with npx expo install, so versions match your Expo SDK. With shadcn: npx shadcn@latest add https://kinetik-ui.dev/r/signature-pad.json

Install manually

  1. Install dependencies
    npx expo install @shopify/react-native-skia react-native-gesture-handler react-native-reanimated react-native-worklets
  2. Copy the source files
    • components/kinetik/signature-pad.tsx
    View source files

Usage

import { SignaturePad, signatureSvg } from '@/components/kinetik/signature-pad';

<SignaturePad onChange={setStrokes} />;

// Later, to save or upload:
const svg = signatureSvg(strokes, 320, 200, '#111111');

When to use

  • Signing to accept something: a delivery, a lease, a consent form.
  • Quick hand-drawn input such as initials.

When not to use

  • Drawing or note-taking apps. They need pressure, colours, erasing and zoom.
  • As the only way to agree to something: offer a typed name or a checkbox too, for people who cannot draw.

Notes

  • Ink is widest when the finger moves slowly and thins with speed, then each stroke is stored as points with a width (InkPoint).
  • inkOutline turns a stroke into a filled Skia path and signatureSvg turns all strokes into an SVG document.
  • The stroke being drawn is built on the UI thread; finished strokes are kept as paths and never rebuilt.
  • With reduced motion Clear removes the ink at once instead of fading it.

Props

SignaturePadProps

PropTypeDefaultDescription
onChange(strokes: readonly InkStroke[]) => void—Called with every stroke after each change. Empty when cleared.
heightnumber200Pad height. Defaults to 200.
maxWidthnumber4.5Widest ink, drawn when the pen moves slowly. Defaults to 4.5.
minWidthnumber1.4Thinnest ink, drawn at speed. Defaults to 1.4.
hintstring'Sign here'Words under the line while the pad is empty. Defaults to "Sign here".
accessibilityLabelstring'Signature'Read by screen readers. Defaults to "Signature".
hapticsbooleantrueA tick on Undo and Clear. Defaults to true.
testIDstring—
styleStyleProp<ViewStyle>—

Performance and accessibility

Performance

Budget
One Skia canvas. Only the stroke being drawn is rebuilt, on the UI thread, as points arrive; finished strokes are cached paths. Nothing runs at rest.
Measured

Pixel 9 emulator, API 35, release build · interaction median 0.89× the system Settings app on the same emulator (indicative only) · no frames drawn at rest · 147 MB app memory

Real-device measurement pending.

Accessibility

Reduced motion
Clear removes the ink at once instead of fading it.
Screen readers
An image named "Signature" that says whether it is empty or how many strokes it has, plus Undo and Clear buttons.
Touch target
The pad is the full width and 200 pt tall; Undo and Clear are 44 pt tall.

Source files

components/kinetik/signature-pad.tsx is in the Code tab of the preview above.