2.1.0 • Published 2 years ago

color-palette-box v2.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Color Palette Box

Screenshot

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
<ColorPaletteGroup title="title is optional">
  {
    list.map(( color, index ) => {
      return (
        <ColorPaletteGroupItem name={color.name} bgColor={color.bgColor} key={index} />
      )
    })
  }
</ColorPaletteGroup>
2.1.0

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.1.0

2 years ago