🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mui-color-picker

<ColorInput> component for material-ui v5 forked from Loic Mahieu,

3.5.1
latest
Version published
Weekly downloads
123
44.71%
Maintainers
1
Weekly downloads
 
Created

<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.

FAQs

Package last updated on 19 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts