1.0.6 • Published 5 years ago
react-swatch-picker v1.0.6
Polymer swatch picker clone in React and material-ui
Usage
Basic
<SwatchPicker />
With pre selected color
<SwatchPicker color="#1e88e5" />
With custom palette
<SwatchPicker colorList="['#000', '#111', '#222', '#333', '#444', '#555', '#666', '#777', '#888', '#999', '#aaa', '#bbb', '#ccc', '#ddd', '#eee', '#fff']" />
Listen for color selection
<SwatchPicker onColorSelect={this.listener} />