w-color-selector
TypeScript icon, indicating that this package has built-in type declarations

1.2.24 • Public • Published

wcolor

wcolor is react component. It is Markdown Input tag to selector color

Install

  npm install w-color-selector

Usage

Import component

  import ColorSelector from 'w-color-selector';

Examples

  <ColorSelector onChange={(value) => fn(value)}/>

Props

width - optional

Set width for input show color

  • Type of: Number
  • Unit: px
height - optional

Set height for input show color

  • Type of: Number
  • Unit: px
defaultValue - optional

Default value of input. Default is #54478c

  • Type of: string
onChange(value: string) - required

A callback when happens for every change value

Note

When click add color, to add you click mouse out and click. You want to hidden popup you can click into input or double click into out popup

Package Sidebar

Install

npm i w-color-selector

Weekly Downloads

15

Version

1.2.24

License

ISC

Unpacked Size

176 kB

Total Files

23

Last publish

Collaborators

  • khacy