Skip to content
shadcn.io
shadcn.io is not affiliated with official shadcn/ui

Shadcn Signature Pad for React and Tailwind

Capture hand-drawn signatures.

Signature

Installation

bunx --bun shadcn@latest add https://kit.dev/r/signature-pad.json

Usage

import { SignaturePad } from "@/components/ui/signature-pad";
<SignaturePad />

Examples

Image preview

Use the onDrawEnd callback to capture the signature as an image.

The callback receives the getDataUrl(type) method that returns a promise that resolves to a data URL.

With field

Wrap the signature pad in a Field with FieldLabel and FieldHelper for accessible form integration.

API Reference

SignaturePad

Root component. Canvas for drawing signatures. Manages strokes and export.

PropTypeDefault
disabledbooleanfalse
requiredbooleanfalse
readOnlybooleanfalse
namestring-
onDraw(details: DrawDetails) => void-
onDrawEnd(details: DrawEndDetails) => void-
classNamestring-

For a complete list of props, see the Ark UI documentation.