1.0.17 β€’ Published 5 months ago

react-esign v1.0.17

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

react-esign ✍️

A lightweight, dependency-free signature input component for React.

NPM
Live Demo

react-esign makes it effortless to capture smooth, customizable digital signatures in React apps. No dependencies, no bloatβ€”just a simple and powerful signature input.

πŸ”— Live Demo & Docs


πŸ“¦ Installation

Install via npm or yarn:

npm install react-esign
# or
yarn add react-esign

πŸ›  Usage

Basic Integration

import { SignatureInput } from "react-esign";

const SignaturePad = () => {
  const handleSignatureChange = (file: File) => {
    console.log("Signature Changed");
  };

  return <SignatureInput onChange={handleSignatureChange} />;
};

export default SignaturePad;

🎯 That’s it! You now have a working signature input in your React app.


🎨 Customization

Easily customize styles, theme, and behavior:

import { SignatureInput } from "react-esign";

const CustomSignaturePad = () => {
  return (
    <SignatureInput
      onChange={(file) => console.log("Signature Changed")}
      isDisabled={false}
      isError={false}
      themeColor="#E50914"
      strokeWidth={3}
      clear
      download
      width={550}
      height={150}
    />
  );
};

export default CustomSignaturePad;

Available Props

PropTypeDefaultDescription
onChange(file: File) => voidRequiredCallback triggered when signature changes
isDisabledbooleanfalseDisables input when true
isErrorbooleanfalseApplies an error style when true
themeColorstring"#000"Sets active border & button color
strokeWidthnumber2Signature stroke thickness
clearbooleanfalseShows a button to clear signature
downloadbooleanfalseShows a button to download signature
widthnumber400Canvas width
heightnumber200Canvas height

πŸ”— See the full API reference β†’ Docs


πŸš€ Try It Live

πŸ”— Check out the interactive demo β†’ react-esign-docs.vercel.app


πŸ“œ License

MIT License. See LICENSE for details.


⭐ Support & Feedback

If you find react-esign useful, give it a star on GitHub ⭐ and share it with fellow developers!

πŸš€ Happy Coding!

1.0.17

5 months ago

1.0.16

5 months ago

1.0.15

5 months ago

1.0.14

5 months ago

1.0.12

5 months ago

1.0.11

5 months ago

1.0.10

5 months ago

1.0.9

5 months ago

1.0.8

5 months ago

1.0.7

5 months ago

1.0.6

5 months ago

1.0.5

5 months ago

1.0.4

5 months ago

1.0.3

5 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago