1.1.1 • Published 6 years ago

react-colorizer v1.1.1

Weekly downloads
6
License
MIT
Repository
github
Last release
6 years ago

react-colorizer

Greenkeeper badge Build Status npm package Dependency Status devDependency Status peerDependency Status

A color picker for React and React Native.

npm.io

Check out our app built on top of this component:

Installation

yarn add react-colorizer

The Gist

import React from 'react';
import ReactDOM from 'react-dom';
import ColorPicker from 'react-colorizer';
import fullScheme, { HarmonyTypes } from 'color-harmony-generator';

const selectedScheme = HarmonyTypes.TRIAD;

function onColorChanged(color) {
  const fullScheme = color.fullScheme(selectedScheme);
}

ReactDOM.render(
  <ColorPicker
    height={50}
    color="#e56500"
    width={255}
    onColorChanged={onColorChanged}
  />,
  document.getElementById('Container')
);

API

proptypedefault value
colorstring'#ff0000'
heightnumber
widthnumber
onColorChangedfunc
onColorChangeEndfunc
onColorChangeStartfunc

Want to contribute?

Please see CONTRIBUTING.md

License

MIT

1.1.1

6 years ago

1.1.0

6 years ago

1.0.10

6 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.1.9

7 years ago

0.1.8

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.1-rc.3

8 years ago

0.0.1-rc.2

8 years ago

0.0.1-rc.1

8 years ago

0.0.1-rc.0

8 years ago