UNPKG

react-signaturepadcanvas

Version:

A simple npm package to capture user signature as an image using canvas

15 lines (14 loc) 388 B
import React from 'react'; import './SignaturePad.css'; interface SignaturePadProps { width?: number; height?: number; style?: object; clrBtnStyle?: object; saveBtnStyle?: object; onSaveImage: (dataUrl: string) => void; theme?: 'light' | 'dark'; strokeColor?: string; } declare const SignaturePad: React.FC<SignaturePadProps>; export default SignaturePad;