react-color-modal

所属分类:图形图像处理
开发工具:TypeScript
文件大小:0KB
下载次数:0
上传日期:2024-02-22 17:13:48
上 传 者sh-1993
说明:  React的另一个颜色选择器
(Yet another color picker for React)

文件列表:
.vscode/
docs/
lib/
.babelrc
.editorconfig
.npmignore
CONTRIBUTING.md
LICENSE
package-lock.json
package.json
rollup.config.js
tsconfig.json

### react-color-modal [![build](https://github.com/arch-inc/react-color-modal/workflows/npm-publish/badge.svg)](https://github.com/arch-inc/react-color-modal/actions?query=workflow%3Anpm-publish) [![npm version](https://img.shields.io/npm/v/react-color-modal)](https://www.npmjs.com/package/react-color-modal) **react-color-modal** is yet another color picker component for React. **react-color-modal** は React 用の軽量なカラーパレットです。 - npm package: https://www.npmjs.com/package/react-color-modal - API document: https://arch-inc.github.io/react-color-modal/api/ - Demo site: https://arch-inc.github.io/react-color-modal/ ### Usage / 使い方 Simply install the npm package and start using it. TypeScript definitions are available by default. (e.g., [index.d.ts](https://cdn.jsdelivr.net/npm/react-color-modal@latest/dist/index.d.ts)) `npm install` でインストールできます。 TypeScript の型定義がついてきます。 ```sh npm i react-color-modal ``` ```jsx import { useState } from "react"; import { ColorPanel } from "react-color-modal"; export const Body = () => { // tinycolor instance const [color, setColor] = useState(null); // render a color panel with simple status indicator return ( <> {color && (

Selected color:{" "} {" "} {color.toHexString()}

)} ); }; ``` ### API Documentation / API ドキュメント All of the exported classes and interfaces are listed in [TypeDoc](https://arch-inc.github.io/react-color-modal/api/). このモジュールが export しているすべてのクラスとインタフェースは [TypeDoc](https://arch-inc.github.io/react-color-modal/api/) で閲覧できます。 ### Credits / 開発者 - [Jun Kato](https://junkato.jp), developer ### Dependencies / 依存パッケージ - [React](https://reactjs.org) - [react-input-slider](https://github.com/arch-inc/react-input-slider) - [styled-components](https://styled-components.com) - [tinycolor2](http://bgrins.github.io/TinyColor) ### Staying in touch / 開発者に連絡 We have developed this extension in collaboration with the core developers of Fabric.js and relevant information can be found in their issue tracker. Twitter [@ArchResearchJp](https://twitter.com/ArchResearchJp) で連絡がつきます。 ### Library in action / 利用例 - [Demo site](https://arch-inc.github.io/react-color-modal/): GitHub Pages accompanied with this library --- Copyright (c) 2020-2024 Arch Inc. (Jun Kato)

近期下载者

相关文件


收藏者