github

casesandberg / react-color

  • пятница, 23 сентября 2016 г. в 03:16:46
https://github.com/casesandberg/react-color

JavaScript
🎨 Color Pickers from Sketch, Photoshop, Chrome, Github, Twitter & more



React Color

Build Status dependency status dev dependency status License Downloads

  • 13 Different Pickers - Sketch, Photoshop, Chrome and many more

  • Make Your Own - Use the building block components to make your own

Sketch and Photoshop Color Picker Built in React

Installation & Usage

npm install react-color --save

Include the Component

import React from 'react';
import { SketchPicker } from 'react-color';

class Component extends React.Component {

  render() {
    return <SketchPicker />;
  }
}

You can import AlphaPicker BlockPicker ChromePicker CirclePicker CompactPicker GithubPicker HuePicker MaterialPicker PhotoshopPicker SketchPicker SliderPicker SwatchesPicker TwitterPicker respectively.

100% inline styles via ReactCSS