1.0.17 β€’ Published 10 months ago

react-esign v1.0.17

Weekly downloads
-
License
MIT
Repository
github
Last release
10 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

10 months ago

1.0.16

10 months ago

1.0.15

10 months ago

1.0.14

10 months ago

1.0.12

10 months ago

1.0.11

10 months ago

1.0.10

10 months ago

1.0.9

10 months ago

1.0.8

10 months ago

1.0.7

10 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago