react-colours

1.0.1 • Public • Published

Colours {

Like colors, but Canadian

🎨 A React component to visualize and easily access a colour palette

Demo

colour palette

Install

npm install react-colours

Basic Usage

Import the React component:

import Colours from 'react-colours';
 
const colours = ['#277bc4', '#68c89e', '#ec89aa', '#a66ace', '#44b1da'];
 
class MyApp extends React.Component {
  render() {
    return (
      <Colours colours={colours} />
    );
  }
}

Props

colours

This is a list of colours that you want to display on the screen. This can be in hex, rgb, rgba, hsl, and hsla.

License

2017 © Zack Harley

🍴 Fork away!

}

Readme

Keywords

none

Package Sidebar

Install

npm i react-colours

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • zackharley