https://github.com/hermanya/react-color-table
React component for displaying some colors in a table sorted by hue and lightness
https://github.com/hermanya/react-color-table
Last synced: 8 months ago
JSON representation
React component for displaying some colors in a table sorted by hue and lightness
- Host: GitHub
- URL: https://github.com/hermanya/react-color-table
- Owner: Hermanya
- Created: 2018-11-23T00:50:48.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-04T02:04:13.000Z (over 7 years ago)
- Last Synced: 2025-01-30T00:08:36.684Z (over 1 year ago)
- Language: JavaScript
- Size: 549 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# react-color-table
> Display some colors in a table sorted by hue and lightness
[](https://www.npmjs.com/package/react-color-table) [](https://standardjs.com)
## Install
```bash
npm install --save react-color-table
```
## Usage
```tsx
import * as React from 'react'
import { ColorTable } from 'react-color-table'
export const Example = () =>
```
## Props
| name | type | default |
| ----------------- | ------------- | ------- |
| colors | string[] | [] |
| rowHeight? | string/number | 64 |
| columnWidth? | string/number | '100%' |
| averageDuplicates | boolean | false |
| inferBlanks | boolean | false |
## License
MIT © [Hermanya](https://github.com/Hermanya)