Signature Pad Field
An e-signature field: draw with mouse, pen or finger and the ink thins on fast strokes and pools on slow ones; undo stroke by stroke, or switch to the Type tab for a keyboard-friendly script signature. Adopting it stamps a signed time.
Try it: Draw a signature on the pad (or use the Type tab), then Adopt & sign.
Installation
Install with the shadcn CLI:
npx shadcn@latest add https://www.framekitui.live/r/signature-pad-field.jsonOr, with the @framekit namespace registered: npx shadcn@latest add @framekit/signature-pad-field. You can also copy the source into components/ui/signature-pad-field.tsx (view on GitHub).
Usage
import { SignaturePadField } from '@/components/ui/signature-pad-field'Props
| Prop | Type | Default | Notes |
|---|---|---|---|
label / description | string | — | Field title and the document line under it. |
name | string | 'Jordan Ellis' | Signer name; pre-fills the Type tab. |
submitLabel | string | 'Adopt & sign' | Primary button copy. |
onAdopt | (result: SignatureResult) => void | — | { method, name, dataUrl, signedAt } — dataUrl is a PNG of the drawn signature. |
onClear | () => void | — | Fires when the pad is cleared. |
ink | { light: string; dark: string } | { light: '#1e2a6e', dark: '#c7d2fe' } | Ink colour per theme. |
theme | 'auto' | 'light' | 'dark' | 'auto' | Canvas ink follows the nearest .dark / .light ancestor. |
Dependencies
motionlucide-react
Related Inputs / Forms components
- Tumbler Lock OTP
A one-time-code field built from combination-lock drums on real CSS-3D cylinders; each digit whirrs a full turn before landing, a padlock checks the code and springs open — or shakes and spins every…
- Crystal Strength Password
A password field that grows an SVG crystal: each satisfied rule springs a faceted shard out of the rock, the cluster shifts from ember to glacier, and a perfect score turns it iridescent with…