JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q45493F
  • License MIT

Melon Color Picker

Package Exports

  • melon-colorpicker

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (melon-colorpicker) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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 git@github.com:react-melon/melon-colorpicker.git
cd melon-colorpicker
npm install
npm start
open http://localhost:8080/example