https://github.com/win-le/w-color-selector
wcolor is react component. It is Markdown Input tag to selector color
https://github.com/win-le/w-color-selector
color-picker input react
Last synced: 2 months ago
JSON representation
wcolor is react component. It is Markdown Input tag to selector color
- Host: GitHub
- URL: https://github.com/win-le/w-color-selector
- Owner: win-le
- Created: 2020-07-26T02:28:47.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-10-17T05:01:25.000Z (over 4 years ago)
- Last Synced: 2025-03-18T16:40:15.407Z (over 1 year ago)
- Topics: color-picker, input, react
- Language: TypeScript
- Homepage:
- Size: 2.7 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```
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