react-pdf-highlighter-plus

The props type for SignaturePad.

interface SignaturePadProps {
    height?: number;
    isOpen: boolean;
    onClose: (() => void);
    onComplete: ((dataUrl) => void);
    width?: number;
}

Properties

height?: number

Canvas height in pixels.

Default

200
isOpen: boolean

Whether the signature pad modal is open.

onClose: (() => void)

Callback when the modal is closed/cancelled.

Type declaration

    • (): void
    • Returns void

onComplete: ((dataUrl) => void)

Callback when signature is completed.

Type declaration

    • (dataUrl): void
    • Parameters

      • dataUrl: string

        The signature as a PNG data URL.

      Returns void

width?: number

Canvas width in pixels.

Default

400