Skip to content

Signature Pad

Pro

A pad to sign on: draw with a pen, a mouse, or a finger, type the name in a script, or upload a photo. Undo, replay, export, and form use.

  • Base UI
  • Motion
  • React 19
  • Tailwind CSS 4

Added Nov 9, 2026 · Pro license

Playground

Loading the preview

Props

Needs your Pro API key in GELATIN_UI_PRO_TOKEN. Set it up

Pro itemAPI key required

Signature Pad needs a Pro API key

Try the live preview for free. With Pro, the add command above puts the source in your project.

Files it adds
53
More Pro items, one API key
+327
Your coding agent runs it
1 cmd

$79$129once, for life

Already have Pro? Sign in to set up your API key.

Put the toolbar, the placeholder, and the baseline with the name of the signer in the canvas.

lease-signature.tsx

SignaturePad

<div>
PropTypeDefaultDescription
childrenReactNode—
aria-labelstring—Defines a string value that labels the current element. The accessible name of the pad. Default "Signature".
valueSignatureData | null—The signature. Controlled. null is an empty pad.
defaultValueSignatureData | nullnullThe first signature when uncontrolled (a saved one to show or to edit).
onValueChange—Runs after each finished stroke, undo, redo, clear, mode change, typed key, and upload.
onStrokeEnd—Runs when the pointer lifts at the end of a stroke, with that stroke.
penColorstring—The ink of the next stroke, and of the typed name and the image (any CSS color). Controlled.
defaultPenColorstring"var(--signature-pad-ink-black)"
onPenColorChange—
penSizenumber—The base width of the next stroke, in px. Controlled.
defaultPenSizenumber3
onPenSizeChange—
fontsreadonly SignatureFontOption[]NO_FONTSThe 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).
acceptreadonly string[]SIGNATURE_UPLOAD_ACCEPTThe image types that Upload takes. Default PNG, JPEG, and WebP.
maxFileSizenumberSIGNATURE_UPLOAD_MAX_SIZEThe largest image that Upload takes, in bytes. Default 10 MB.
namestring—The form field name. The form sends the value as JSON, or nothing when empty.
requiredbooleanfalseThe form blocks the submit while the pad is empty (a Field shows the error).
disabledbooleanfalse
readOnlybooleanfalseShows the signature; no drawing, typing, upload, modes, or tools.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Use it when a person must sign: a contract, a consent form, a delivery.
  • Set name and required to send the signature with a native form; a Field shows the error.
  • List the script fonts that your app loads in fonts, for the Type mode.
  • To upload any other file, use a Dropzone.
  • To only collect a typed name, use an Input.
ModZUndoes the last stroke.
ModShiftZorCtrlYRedoes the stroke.
TabMoves between the modes, the tools, and the pad.
Placeholder
fade · the hint fades out when the first stroke starts

Built with

Installs with Signature Pad

  1. AddedSignature Pad, with Button, Select, Spinner, Tabs, Toggle Group, Toolbar, Tooltip.
Open the release