1.0.1 • Published 3 years ago

signature-component v1.0.1

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

3 years ago

1.0.0

3 years ago

0.1.10

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago