Gathering detailed insights and metrics for @uiw/react-color-circle
Gathering detailed insights and metrics for @uiw/react-color-circle
npm install @uiw/react-color-circle
Typescript
Module System
Node Version
NPM Version
91.8
Supply Chain
94.3
Quality
86.4
Maintenance
100
Vulnerability
100
License
TypeScript (98.29%)
HTML (1.02%)
CSS (0.65%)
Less (0.04%)
Total Downloads
1,142,018
Last Day
6,560
Last Week
27,285
Last Month
112,441
Last Year
941,450
343 Stars
460 Commits
109 Forks
4 Watching
9 Branches
15 Contributors
Minified
Minified + Gzipped
Latest Version
2.3.4
Package Id
@uiw/react-color-circle@2.3.4
Unpacked Size
17.44 kB
Size
4.21 kB
File Count
12
NPM Version
10.8.2
Node Version
20.18.1
Publised On
11 Dec 2024
Cumulative downloads
Total Downloads
Last day
1.8%
6,560
Compared to previous day
Last week
-15.9%
27,285
Compared to previous week
Last month
18.3%
112,441
Compared to previous month
Last year
484.9%
941,450
Compared to previous year
2
3
1
Circle Component is a subcomponent of @react-color
.
1npm i @uiw/react-color-circle
1import React, { useState } from 'react'; 2import Circle from '@uiw/react-color-circle'; 3 4export default function Demo() { 5 const [hex, setHex] = useState('#F44E3B'); 6 return ( 7 <Circle 8 colors={[ '#F44E3B', '#FE9200', '#FCDC00', '#DBDF00' ]} 9 color={hex} 10 onChange={(color) => { 11 setHex(color.hex); 12 }} 13 /> 14 ); 15}
Modify point style
1import React, { useState } from 'react'; 2import Circle from '@uiw/react-color-circle'; 3 4export default function Demo() { 5 const [hex, setHex] = useState('#F44E3B'); 6 return ( 7 <Circle 8 colors={[ 9 '#f44336', 10 '#e91e63', 11 '#9c27b0', 12 '#673ab7', 13 '#3f51b5', 14 '#2196f3', 15 ]} 16 color={hex} 17 pointProps={{ 18 style: { 19 marginRight: 20, 20 }, 21 }} 22 onChange={(color) => { 23 setHex(color.hex); 24 }} 25 /> 26 ); 27}
1import React from 'react'; 2import { HsvaColor, ColorResult } from '@uiw/color-convert'; 3import { SwatchProps } from '@uiw/react-color-swatch'; 4export interface CircleProps extends Omit<SwatchProps, 'color' | 'onChange'> { 5 color?: string | HsvaColor; 6 onChange?: (color: ColorResult) => void; 7 pointProps?: React.HTMLAttributes<HTMLDivElement>; 8} 9declare const Circle: React.ForwardRefExoticComponent<CircleProps & React.RefAttributes<HTMLDivElement>>; 10export default Circle;
As always, thanks to our amazing contributors!
Made with contributors.
Licensed under the MIT License.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
packaging workflow detected
Details
Reason
8 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 7
Reason
Found 6/28 approved changesets -- score normalized to 2
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
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-01-27
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