1.0.1 • Published 2 years ago

signature-component v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Install

npm i signature-component
yarn add signature-component

Using

import { useActions, Signature } from 'signature-component';

const { clearSignature, getImageSignature, isEmpty, changeBackgroundColor } = useActions()

const imageIsEmpty = () => {
  !isEmpty() ? console.log(getImageSignature()) : console.log("not image!")
}

return (
  <div>
    <div>
      <button onClick={() => clearSignature()}>
        Clear
      </button>
      <button onClick={imageIsEmpty}>
        Get image
      </button>
      <button onClick={() => changeBackgroundColor("#87CEEB")}>
        Background
      </button>
    </div>
    <Signature
      penColor="#000000"
      width={500}
      height={500}
    />
  </div>
)

Contact

1.0.1

2 years ago

1.0.0

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago