Gathering detailed insights and metrics for @rc-component/color-picker
Gathering detailed insights and metrics for @rc-component/color-picker
Gathering detailed insights and metrics for @rc-component/color-picker
Gathering detailed insights and metrics for @rc-component/color-picker
npm install @rc-component/color-picker
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
439 Stars
234 Commits
89 Forks
26 Watching
27 Branches
41 Contributors
Updated on 26 Nov 2024
Minified
Minified + Gzipped
TypeScript (93.42%)
Less (5.73%)
JavaScript (0.69%)
Shell (0.16%)
Cumulative downloads
Total Downloads
Last day
-3.6%
169,021
Compared to previous day
Last week
6%
900,600
Compared to previous week
Last month
13.9%
3,624,840
Compared to previous month
Last year
335.7%
31,917,525
Compared to previous year
26
React Color Picker.
npm install
npm start
1import ColorPicker from '@rc-component/color-picker'; 2import '@rc-component/color-picker/assets/index.css'; 3 4export default () => <ColorPicker />;
Property | Description | Type | Default |
---|---|---|---|
value | Value of color | string | Color | - |
defaultValue | Default value of color | string | Color | - |
onChange | Callback when value is changed | (value: Color, type: hue | alpha) => void | - |
onChangeComplete | Callback when drag is stop | (value: Color, type: hue | alpha) => void | - |
disabled | Disabled ColorPicker | boolean | false |
disabledAlpha | Disabled alpha slider | boolean | false |
panelRender | Custom panel render | (panel: React.ReactElement) => React.ReactElement | - |
Property | Description | Type | Default |
---|---|---|---|
toHexString | Convert to hex format color string, like #ffffff | () => string | - |
toHsb | Convert to hsb object, like { h: 0, s: 0, b: 0, a: 0 } | () => ({ h: number, s: number, b: number, a number }) | - |
toHsbString | Convert to hsb format color string, like hsba(0, 0%, 0%, 0) | () => string | - |
toRgb | Convert to rgb object, like { r: 0, g: 0, b: 0, a: 0 } | () => ({ r: number, g: number, b: number, a number }) | - |
toRgbString | Convert to rgb format color string, like rgba(0, 0, 0, 0) | () => string | - |
npm test
or
npm run coverage
@rc-component/color-picker is released under the MIT license.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 7/30 approved changesets -- score normalized to 2
Reason
1 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More