Skip to content

PetrochukM/color-panel

Repository files navigation

Synopsis

A React Component for a color panel. The color panel accepts a parameter of height and width. It then evenly distributes those colors in a column fashion.

alt text

Code Example

Download from NPM npm install color-panel --save

Then include the component into your react like so:

'use strict';

import React from 'react';
import ReactDOM from 'react-dom';
import ColorPanel from 'component/index.jsx';

ReactDOM.render(
    <ColorPanel colors={['#000', '#333', '#666', '#999', '#ccc', '#fff']} width="15em" height="1.5em" />,
    document.getElementById('entry')
);

Get Started

Download from NPM npm install color-panel --save

License

MIT

About

Get colors evenly distributed in columns in a component

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published