react-colors
所属分类:图形图像处理
开发工具:TypeScript
文件大小:0KB
下载次数:0
上传日期:2024-05-08 07:52:39
上 传 者:
sh-1993
说明: React color picker, supports solid color & Gradient color. React 颜色选择器,同时支持纯色和渐变色选择。, stars:4, update:2024-05-06 09:51:06
文件列表:
assets/
docs/
src/
.eslintignore
.eslintrc.cjs
.stylelintignore
.stylelintrc.cjs
LICENSE
abc.json
build.config.mts
package.json
tsconfig.json
yarn.lock
[![Version](https://img.shields.io/npm/v/react-colors-beauty.svg?style=flat-square&logo=npm)
![Downloads](https://img.shields.io/npm/dm/react-colors-beauty.svg?style=flat-square&logo=npm)
![Total downloads](https://img.shields.io/npm/dt/react-colors-beauty?style=flat-square&logo=npm)](https://www.npmjs.com/package/react-colors-beauty)
# react-colors-beauty
颜色选择器,同时支持纯色和渐变色选择。
## Install
```bash
$ npm i react-colors-beauty --save
```
```bash
$ yarn add react-colors-beauty
```
## Basic Example
```js
import { useState } from 'react';
import { ColorsPicker } from 'react-colors-beauty';
import 'react-colors-beauty/esm/index.less';
export default function App () {
const [value, setValue] = useState({ type: 'solid', color: 'rgb(0,0,0)' });
}
```
近期下载者:
相关文件:
收藏者: