Skip to main content

Signature Pad

Capture a signature with a pointer, a finger or a pen, as a transparent PNG.

View as Markdown

Installation

Component API

PropTypeDefaultDescription
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.
placeholderstringSign above the lineThe line under the pad, until someone signs.
The line under the pad, until someone signs.
heightnumber200The pad's height in pixels.
The pad's height in pixels.
ariaLabelstringSignatureNames the pad for screen readers.
Names the pad for screen readers.
shapenone | rounded | pillrounded
disabledbooleanfalseTurns drawing off and dims the pad.
Turns drawing off and dims the pad.
classNamestring-
focusboolean | stringtrue