Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/willi-dev/color-palette-box

color-palette-box
https://github.com/willi-dev/color-palette-box

Last synced: 13 days ago
JSON representation

color-palette-box

Awesome Lists containing this project

README

        

## Color Palette Box

![Screenshot](static/color-palette-box-preview.png)

React Components for display color palette name.
It can use in React App or can use in MDX storybook docs.

### Documentation

**npm**
```
npm install color-palette-box
```

**yarn**
```
yarn add color-palette-box
```

**example**
```
//import
import { ColorPaletteGroup, ColorPaletteGroupItem } from 'color-palette-box'

# create a list of your colors
const list = [
{
name: 'color #1',
bgColor: '#000000',
desc: 'description here' // optional
},
{
name: 'color #2',
bgColor: '#DFDFDF',
desc: 'description here' // optional
}
]

// in your component render

{
list.map(( color, index ) => {
return (

)
})
}

```