All Projects → sm-react → react-material-color-picker

sm-react / react-material-color-picker

Licence: MIT license
react-material-color-picker component for selecting colors from google material color palette 📃

Programming Languages

javascript
184084 projects - #8 most used programming language
shell
77523 projects
Batchfile
5799 projects

Projects that are alternatives of or similar to react-material-color-picker

Material Ui Color Picker
<ColorInput> component for material-ui
Stars: ✭ 74 (+289.47%)
Mutual labels:  color, material-ui, picker
Colorpicker
A mininal but complete colorpicker desktop app
Stars: ✭ 766 (+3931.58%)
Mutual labels:  color, picker
Pickr
🎨 Flat, simple, multi-themed, responsive and hackable Color-Picker library. No dependencies, no jQuery. Compatible with all CSS Frameworks e.g. Bootstrap, Materialize. Supports alpha channel, rgba, hsla, hsva and more!
Stars: ✭ 3,759 (+19684.21%)
Mutual labels:  color, picker
Colorpickerwpf
Simple color picker control for WPF
Stars: ✭ 71 (+273.68%)
Mutual labels:  color, picker
ColorPick.js
A simple and minimal jQuery color picker plugin for the modern web.
Stars: ✭ 48 (+152.63%)
Mutual labels:  color, picker
Colorpicker
jQuery UI widget for color picking (similar to the one in Microsoft Office 2010).
Stars: ✭ 271 (+1326.32%)
Mutual labels:  color, picker
Swifthuecolorpicker
iOS HUE color picker
Stars: ✭ 44 (+131.58%)
Mutual labels:  color, picker
Material Ui Pickers
Date & Time pickers, built with ❤️ for @material-ui/core
Stars: ✭ 2,291 (+11957.89%)
Mutual labels:  material-ui, picker
Cyanea
A theme engine for Android
Stars: ✭ 1,319 (+6842.11%)
Mutual labels:  color, material-ui
Color Picker
A simple color picker application written in pure JavaScript, for modern browsers.
Stars: ✭ 180 (+847.37%)
Mutual labels:  color, picker
Efcolorpicker
A lightweight color picker in Swift.
Stars: ✭ 205 (+978.95%)
Mutual labels:  color, picker
a-color-picker
A color picker for web app
Stars: ✭ 97 (+410.53%)
Mutual labels:  color, picker
SheetyColors
An action sheet styled color picker for iOS.
Stars: ✭ 101 (+431.58%)
Mutual labels:  color, picker
Pixel Picker
A tiny menu bar application that helps you pick colours from your screen! 🔍✨
Stars: ✭ 318 (+1573.68%)
Mutual labels:  color, picker
Bottomsheet
BottomSheet dialog library for Android
Stars: ✭ 219 (+1052.63%)
Mutual labels:  material-ui, picker
React Colorful
🎨 A tiny (2,5 KB) color picker component for React and Preact apps
Stars: ✭ 951 (+4905.26%)
Mutual labels:  color, picker
react-daterange-picker
A react date range picker to using @material-ui. Live Demo: https://flippingbitss.github.io/react-daterange-picker/
Stars: ✭ 85 (+347.37%)
Mutual labels:  material-ui, picker
react-native-color-panel
React Native Color Panel Component for iOS and Android 🏳️‍🌈
Stars: ✭ 21 (+10.53%)
Mutual labels:  color, picker
Django Colorfield
color field for django models with a nice color-picker in the admin. 🎨
Stars: ✭ 238 (+1152.63%)
Mutual labels:  color, picker
colr pickr
Colr Pickr, a vanilla JavaScript color picker component built with SVGs, with features like saving colors. Similar design to the chrome-dev-tools color picker.
Stars: ✭ 27 (+42.11%)
Mutual labels:  color, picker

GitHub version npm version @airbnb

React Material Color Picker Component

Material Design is a design language introduced by Google. If you want to find color inspiration for a specific design style based on material color palette, you can use this component as a development tool. You may find it useful while creating Material apps in combination with such libraries as Material-UI

Appearance

screen1

screen2

screen3

Install

$ npm i react-material-color-picker --save

Usage

import React from 'react';
import MaterialColorPicker from 'react-material-color-picker';

// in your app
<MaterialColorPicker 
    initColor="rgba(0, 0, 0, 0.26)"
    onSubmit={actionLog()}
    onReset={actionLog()}
    style={{width: 400, backgroundColor: '#c7c7c7'}}
    submitLabel='Apply'
    resetLabel='Undo'
/>

Demo

Live demo

API

Props and Callbacks

initColor should be color string from Goggle material color palette

style - inline style of the root div node

submitLabel and resetLabel are titles of the appropriate buttons

onSubmit and onReset are callbacks wich will be invoked by clicking the appropriate buttons. It will recieve an argument with the following structure:

event = {
        type, // 'submit' || 'reset', 
        timeStamp, // nativeEvent.timeStamp,
        target: {
            value, // currient color string,
            nativeEvent, // nativeEvent,
            name: 'MaterialColorPicker',
            node, // ref to root div element,
            ...this.props,
        }
};

smArtLight

@UsulPro @sm-react

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].