<ColorInput> component for material-ui
npm install material-ui-color-picker for material-ui! example
ColorPicker based on and from react-color and its redux-form field component.
https://material-ui-color-picker.now.sh/
For material-ui (v1):
``sh`
npm install --save material-ui-color-picker
`js
import React from 'react'
import ColorPicker from 'material-ui-color-picker'
defaultValue='#000'
// value={this.state.color} - for controlled component
onChange={color => console.log(color)}
/>
``
Redux-form fieldjs
import React, { Component } from 'react';
import { reduxForm, Field } from 'redux-form';
import { ColorPickerField } from 'material-ui-color-picker';
...
component={ColorPickerField}
/>
...
``
There is not so much properties at this time. The was very quickly designed for my needs. Feel free to submit a PR with new features ;)
This library is licensed under the MIT Licence, and sponsored by iGLOO.