Capture a signature with a pointer, a finger or a pen, as a transparent PNG.
View as MarkdownInstallation
Component API
| Prop | Type | Default | Description |
|---|---|---|---|
onChange | (png: string | null) => void | - | Called after each stroke, undo and clear: the signature as a transparent PNG, or null once empty. |
Called after each stroke, undo and clear: the signature as a transparent PNG, or null once empty. | |||
placeholder | string | Sign above the line | The line under the pad, until someone signs. |
| The line under the pad, until someone signs. | |||
height | number | 200 | The pad's height in pixels. |
| The pad's height in pixels. | |||
ariaLabel | string | Signature | Names the pad for screen readers. |
| Names the pad for screen readers. | |||
shape | none | rounded | pill | rounded | |
disabled | boolean | false | Turns drawing off and dims the pad. |
| Turns drawing off and dims the pad. | |||
className | string | - | |
focus | boolean | string | true | |