react-colours
v1.0.1
Published
> *Like colors, but Canadian*
Downloads
4
Readme
Colours {
Like colors, but Canadian
:art: A React component to visualize and easily access a 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_and_knife: Fork away!