Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
bee-colorpicker
Advanced tools
react colorpicker component for tinper-bee
可定制的取色板组件
先进行下载bee-colorpicker包
npm install --save bee-colorpicker
组件调用
import ColorPicker from 'bee-colorpicker';
ReactDOM.render(
<ColorPicker label="颜色" />
, document.getElementById('target'));
<link rel="stylesheet" href="./node_modules/bee-colorpicker/build/ColorPicker.css">
import "./node_modules/bee-colorpicker/src/ColorPicker.scss"
//或是
import "./node_modules/bee-colorpicker/build/ColorPicker.css"
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
className | 类名 | string | - |
value | input当前值 | string | - |
required | 是否是必输项 | bool | false |
disabled | 是否禁用 | bool | false |
disabledAlpha | 是否禁用透明度 | bool | false |
placeholder | input中的提示信息 | string | - |
onChange | input值发生改变触发的回调 | func | - |
autoCalculate | 根据选中的颜色自动计算比其 浅一色度/深一色度 的色值 | func | - |
$ npm install -g bee-tools
$ git clone https://github.com/tinper-bee/bee-colorpicker
$ cd bee-colorpicker
$ npm install
$ npm run dev
FAQs
ColorPicker ui component for react
The npm package bee-colorpicker receives a total of 69 weekly downloads. As such, bee-colorpicker popularity was classified as not popular.
We found that bee-colorpicker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 14 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.