1.0.2 • Published 5 years ago

react-color-table v1.0.2

Weekly downloads
29
License
MIT
Repository
github
Last release
5 years ago

react-color-table

Display some colors in a table sorted by hue and lightness

NPM JavaScript Style Guide

Install

npm install --save react-color-table

Usage

import * as React from 'react'

import { ColorTable } from 'react-color-table'

export const Example = () =>
  <ColorTable
    colors={['#123123', 'rgba(123,123,123,12)']}
    averageDuplicates
    inferBlanks
  />

Props

nametypedefault
colorsstring[][]
rowHeight?string/number64
columnWidth?string/number'100%'
averageDuplicatesbooleanfalse
inferBlanksbooleanfalse

License

MIT © Hermanya