Signature Pad

Draw a signature with mouse, pen or finger on a canvas with pressure aware strokes, undo and clear, a typed name fallback and PNG export for forms.

src/registry/ui/signature-pad.tsx/r/signature-pad.json

Installation#

bash
npx shadcn@latest add https://ui.minidev.pro/r/signature-pad.json

Usage#

tsx
import { SignaturePad } from "@/components/ui/signature-pad"

export function Example() {
  return <SignaturePad />
}

API reference#

SignaturePad props
PropTypeDefault
onChange(dataUrl: string | null) => void-
labelstring"Signature"
heightnumber180
classNamestring-

Dependencies#

npm

lucide-react

Built from

All form components