Signature Pad
Canvas signature input with smoothed strokes, undo/clear, and data-URL output.
Import
tsx
import { SignaturePad } from "@cooud-ui/ui";
bash
npx cooud-ui add signature-pad
Examples
API Reference
Generated from the component's exported types.
SignaturePadProps
Extends Omit<HTMLAttributes<HTMLDivElement>, "onChange">
| Prop | Type | Default | Description |
|---|---|---|---|
onChange | (dataUrl: string | null) => void | — | Fired when a stroke is committed, undone, or the pad is cleared. Receives a PNG data URL of the drawing, or `null` once the pad is empty again. |
disabled | boolean | false | Freezes the pad: pointer input is ignored and the overlay actions disable. |