1.1.4 • Published 4 years ago

react-color-attribute v1.1.4

Weekly downloads
7
License
MIT
Repository
github
Last release
4 years ago

react-color-attribute

React component for rendering product color attributes.

Click here for demo.

Installation

Install the package from npm:

npm install --save react-color-attribute

Usage

import ColorAttribute from 'react-color-attribute';

Props

NameTypeDefaultDescription
colorsstring[][]Valid CSS colors to render in attribute component
idstringUnique identifier for the color attribute
selectedbooleanfalseDetermines if the component should render in a selected state
onMouseEnterfunctionCallback fired when mouse enters componentSignature:function(id: string) => void
onMouseLeavefunctionCallback fired when mouse leaves componentSignature:function(id: string) => void
onClickfunctionCallback fired when component is clicked componentSignature:function(id: string) => void

Node.js Package

1.1.0

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.0.0

5 years ago