Skip to content

react-melon/melon-colorpicker

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

melon-colorpicker

Build Status Coverage Status

Usage

import React from 'react';
import ColorPicker from 'melon-colorpicker';
import ReactDOM from 'react-dom';

import './index.styl';

ReactDOM.render(
    <ColorPicker
        open={open}
        top={0}
        left={0}
        name = "rgbStr"
        placeholder = "请选择" />,
    document.getElementById('app')
);

Setup

webpack

  1. please check out this first.

  2. npm install -S melon-colorpicker

bower

  1. bower install -S melon-colorpicker

  2. config your requirejs / esl

    require.config({
        paths: {
            'melon-colorpicker': 'bower_components/melon-colorpicker/lib/index'
        }
    });

API Document

check this out

Run the example

git clone https://github.com/react-melon/melon-colorpicker.git
cd melon-colorpicker
npm install
npm start
open http://localhost:8080/example