The LemonadeJS JavaScript Signature Pad is a responsive component that simplifies signature capture in web applications. It is compatible with Vanilla JavaScript, React, Vue, and Angular frameworks, allowing users to capture signatures using either mouse
npm install @lemonadejs/signaturebash
$ npm install @lemonadejs/signature
`
$3
To use data grid via a CDN, include the following script tags in your HTML file:
`html
`
$3
Quick example with Lemonade
`javascript
import Signature from "@lemonadejs/signature";
export default function Component() {
const self = this;
self.width = 400;
self.height = 200;
self.value = [];
return ;
}
`
ReactJS Signature Pad Plugin
`jsx
import React, { useRef } from "react";
import Signature from "@lemonadejs/signature/dist/react";
export default function App() {
const signature = useRef();
const width = 400;
const height = 200;
const value = [];
return (
<>
>
);
}
`
VueJS Signature Pad Plugin
`vue
`
Web-Component Signature Pad
`html
`
$3
| Attribute | Description |
|-------------------------|----------------------------------------------------------------------|
| value?: Array | The value represents the painted point's position. |
| width?: Number | The width of the signature pad. |
| height?: Number | The height of the signature pad. |
| instructions?: String | The instruction text. It appears at the bottom of the signature pad. |
| line?: Number | The size of each painted point. |
| disabled?: Boolean | Signature is disabled if true. |
| getValue: Function | Gets the value array. |
| setValue: Function | Sets the internal state value. |
| getImage: Function` | Gets the image based on the value. |