0.2.0 • Published 2 years ago
rc-awsome-color-picker v0.2.0
rc-awsome-color-picker
基于 mb-react-color-picker二次开发
Preview
纯色
渐变
Install
npm i rc-awsome-color-picker
Usage
import { useState } from 'react'
import { ColorPicker } from 'rc-awsome-color-picker'
const App = function () {
const [color, setColor] = useState('')
return <ColorPicker headerTitle='颜色选择器' color={color} onChange={setColor} />
}
export default App
Feature
Support EyeDropper
Support GradientLinear
About
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
value | 颜色(支持十六进制和RGBA格式) | string | undefined | #fff |
onChange | 颜色被修改时的回调函数 | (hex: string) => void | undefined |
onClose | 颜色选择器面板 被关闭时的回调函数 | (e: React.MouseEvent<HTMLSpanElement, globalThis.MouseEvent>) => void | undefined |
headerTitle | 颜色选择器面板的标题组件 | ReactChildren | undefined |
0.2.0
2 years ago
0.1.6
2 years ago
0.1.5
2 years ago
0.1.4
2 years ago
0.1.3
2 years ago
0.1.2
2 years ago
0.1.1
2 years ago
0.1.0
2 years ago
0.0.16
2 years ago
0.0.15
2 years ago
0.0.14
2 years ago
0.0.13
2 years ago
0.0.12
2 years ago
0.0.11
2 years ago
0.0.10
2 years ago
0.0.9
2 years ago
0.0.8
2 years ago
0.0.7
2 years ago
0.0.6
2 years ago
0.0.5
2 years ago
0.0.4
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago
0.0.1
2 years ago