mui-colorpicker-button

Color picker component for Material-Ui

Usage no npm install needed!

<script type="module">
  import muiColorpickerButton from 'https://cdn.skypack.dev/mui-colorpicker-button';
</script>

README

Color Picker Button component for material-ui

<ColorPicker> example

This Color Picker component for material-ui derives from Loic Mahieu's repository in which, rather than a textfield input, a button input is used instead. Apart from the substitution of using a button, the underlying implementation is the same.

Installation

For material-ui (v1):

npm install --save mui-colorpicker-button

Usage

import React from 'react'
import ColorPicker from 'mui-colorpicker-button'

<ColorPicker
  onChange={color => console.log(color)}
  /* 
    Add the below attribute if you want the button
    to change color.
  */
  value={value} 
  name='Change color'
/>

License

This library is licensed under the MIT Licence, and sponsored by iGLOO.