mui-color-picker
TypeScript icon, indicating that this package has built-in type declarations

3.5.1 • Public • Published

<ColorPicker> for material-ui

<ColorPicker> example

ColorPicker based on <TextField /> and <ChromePicker /> from react-color and its redux-form field component.

Installation

For mui (v5):

npm install --save mui-color-picker

Usage

import React from 'react'
import ColorPicker from 'mui-color-picker'

<ColorPicker
  name='color'
  defaultValue='#000'
  // value={this.state.color} - for controlled component
  onChange={color => console.log(color)}

/>

Redux-form field

import React, { Component } from 'react';
import { reduxForm, Field } from 'redux-form';
import { ColorPickerField } from 'mui-color-picker';

...
<Field
  name="color"
  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 ;)

License

This library is licensed under the MIT Licence.

Package Sidebar

Install

npm i mui-color-picker

Weekly Downloads

111

Version

3.5.1

License

MIT

Unpacked Size

17.3 kB

Total Files

13

Last publish

Collaborators

  • emonarafat