New Features
- You can pass any wanted properties to the canvas element now (solves #7):
...
render() {
return <SignaturePad
ref={ref => this.signaturePad = ref}
canvasProps={{className: 'signature-pad-canvas'}} />;
}
...
Breaking Changes
- Previously it was possible to define a
className property on the signature pad component, which was passed down to the canvas element. This option has been removed, since now you can accomplish the same thing by defining a className property on your canvasProps object.