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

Anatomy

SignaturePad
├── SignaturePadControl
├── SignaturePadSegment
│   └── SignaturePadSegmentPath
├── SignaturePadGuide
├── SignaturePadClearTrigger
└── SignaturePadLabel

Usage

import { SignaturePad } from "@/components/ui/signature-pad";
const SignaturePadDemo = () => <SignaturePad className="w-full max-w-md" />;

Accessibility

KeyDescription
Enter
Activate the focused control.
Space
Activate the focused control.

Demos

Field

Image Preview

API Reference

SignaturePad

div

PropType
AttributeType

SignaturePadControl

div

PropType
AttributeType

SignaturePadSegment

svg

PropType
AttributeType

SignaturePadGuide

div

PropType
AttributeType

SignaturePadClearTrigger

button

PropType
AttributeType

useSignaturePad

PropType