Skip to content

ylekhac/w-color-selector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published