shadcn.io is not affiliated with official shadcn/ui
Framework
UI library
Radix UI does not include this primitive, so this page uses the Ark UI component. The visuals match the Ark UI version.
Installation
bunx --bun shadcn@latest add https://kit.dev/r/radix/signature-pad.jsonAnatomy
SignaturePad
├── SignaturePadControl
├── SignaturePadSegment
│ └── SignaturePadSegmentPath
├── SignaturePadGuide
├── SignaturePadClearTrigger
└── SignaturePadLabelUsage
import { SignaturePad } from "@/components/ui/signature-pad";const SignaturePadDemo = () => <SignaturePad className="w-full max-w-md" />;Accessibility
| Key | Description |
|---|---|
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