SignaturePad
Canvas-based freehand signature drawing pad with clear and export actions.
Examples
Basic
Canvas area for capturing a drawn signature.
With controls
Signature pad with pen color picker and clear / save actions.
Readonly
A previously captured signature displayed as read-only.
Installation
pnpm add @rokle/components @rokle/tokensInstalls with the default Rokle brand. Generate a custom brand on rokle.app to use your own colours and personality.
Usage
import { SignaturePad } from "@rokle/components";import { SignaturePad } from "@rokle/components";
export function Example() {
return <SignaturePad />;
}API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| onSignatureChange | (dataUrl: string | null) => void | - | Called with PNG data URL when signature changes or is cleared. |
| width | number | 400 | Canvas width in pixels. |
| height | number | 200 | Canvas height in pixels. |