About
A form field for capturing a signature by drawing freehand strokes on a touch/pointer surface or typing a name as a keyboard-accessible alternative, with undo and clear controls.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Signature Pad to your project and fits it to your theme.
Code
How Signature Pad is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { SignaturePad } from "@/components/ui/signature-pad";
export default function SignaturePadStates() {
return (
<SignaturePad
className="w-full max-w-sm"
label="Sign by typing"
defaultValue={{ mode: "type", text: "Alex Morgan" }}
/>
);
}
















