react-hexagon-color-picker

0.1.4 • Public • Published

react-hexagon-color-picker

Lightweight hexagon color picker for react (SVG)

Preview

import { HexagonalColorHue, HexagonalColorPicker } from "react-hexagon-color-picker";

<div style={{textAlign: "center", margin: 16}}>
	<div>
	    	<HexagonalColorPicker
			hue={_hue}
			color={_current_color}
			onColorChange={this._handle_current_color_change} // f("#444444")
			onColorClick={this._handle_color_menu_open}/> // f(event, "#444444")
	</div>
	<div style={{ margin: 16}}>
	    	<HexagonalColorHue
			hue={_hue}
			onHueChange={this._handle_hue_change}/> // f(345)
	</div>
</div>

Package Sidebar

Install

npm i react-hexagon-color-picker

Weekly Downloads

11

Version

0.1.4

License

MIT

Unpacked Size

80 kB

Total Files

9

Last publish

Collaborators

  • vipertechofficial