Socket
Socket
Sign inDemoInstall

material-ui-color-picker

Package Overview
Dependencies
62
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    material-ui-color-picker

<ColorInput> component for material-ui


Version published
Weekly downloads
4.1K
decreased by-7.23%
Maintainers
1
Install size
17.5 MB
Created
Weekly downloads
 

Readme

Source

<ColorPicker> for material-ui

<ColorPicker> example

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

Demo

https://material-ui-color-picker.now.sh/

Installation

For material-ui (v1):

npm install --save material-ui-color-picker

Usage

import React from 'react'
import ColorPicker from 'material-ui-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 'material-ui-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, and sponsored by iGLOO.

Keywords

FAQs

Last updated on 12 Aug 2020

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc