Put the toolbar, the placeholder, and the baseline with the name of the signer in the canvas.
lease-signature.tsx
SignaturePad
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | — | |
| aria-label | string | — | Defines a string value that labels the current element. The accessible name of the pad. Default "Signature". |
| value | SignatureData | null | — | The signature. Controlled. null is an empty pad. |
| default | SignatureData | null | null | The first signature when uncontrolled (a saved one to show or to edit). |
| on | — | Runs after each finished stroke, undo, redo, clear, mode change, typed key, and upload. | |
| on | — | Runs when the pointer lifts at the end of a stroke, with that stroke. | |
| pen | string | — | The ink of the next stroke, and of the typed name and the image (any CSS color). Controlled. |
| default | string | "var(--signature-pad-ink-black)" | |
| on | — | ||
| pen | number | — | The base width of the next stroke, in px. Controlled. |
| default | number | 3 | |
| on | — | ||
| fonts | readonly SignatureFontOption[] | NO_FONTS | The fonts of the typed name, for SignaturePadFonts. The first is the default. The pad ships no font: list fonts that the app loads. Empty: the --signature-pad-font token (cursive). |
| accept | readonly string[] | SIGNATURE_UPLOAD_ACCEPT | The image types that Upload takes. Default PNG, JPEG, and WebP. |
| max | number | SIGNATURE_UPLOAD_MAX_SIZE | The largest image that Upload takes, in bytes. Default 10 MB. |
| name | string | — | The form field name. The form sends the value as JSON, or nothing when empty. |
| required | boolean | false | The form blocks the submit while the pad is empty (a Field shows the error). |
| disabled | boolean | false | |
| read | boolean | false | Shows the signature; no drawing, typing, upload, modes, or tools. |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
| ModZ | Undoes the last stroke. |
|---|---|
| ModShiftZorCtrlY | Redoes the stroke. |
| Tab | Moves between the modes, the tools, and the pad. |
Built with
Installs with Signature Pad







