Gathering detailed insights and metrics for @uiw/react-color-colorful
Gathering detailed insights and metrics for @uiw/react-color-colorful
Gathering detailed insights and metrics for @uiw/react-color-colorful
Gathering detailed insights and metrics for @uiw/react-color-colorful
🎨 Is a tiny color picker widget component for React apps.
npm install @uiw/react-color-colorful
Typescript
Module System
Node Version
NPM Version
TypeScript (98.31%)
HTML (1%)
CSS (0.64%)
Less (0.04%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
421 Stars
497 Commits
117 Forks
4 Watchers
9 Branches
19 Contributors
Updated on Jul 11, 2025
Latest Version
2.7.1
Package Id
@uiw/react-color-colorful@2.7.1
Unpacked Size
17.52 kB
Size
4.11 kB
File Count
7
NPM Version
10.8.2
Node Version
20.19.3
Published on
Jul 11, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
4
3
1
Colorful Component is a subcomponent of @react-color
.
1npm i @uiw/react-color-colorful
1import React, { useState } from 'react'; 2import Colorful from '@uiw/react-color-colorful'; 3import { hsvaToHex } from '@uiw/color-convert'; 4 5export default function Demo() { 6 const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 }); 7 return ( 8 <> 9 <Colorful 10 color={hsva} 11 onChange={(color) => { 12 setHsva(color.hsva); 13 }} 14 /> 15 <div style={{ background: hsvaToHex(hsva), marginTop: 30, padding: 10 }}> 16 {JSON.stringify(hsva)} 17 </div> 18 </> 19 ); 20}
1import React, { useState } from 'react'; 2import Colorful from '@uiw/react-color-colorful'; 3import { hsvaToHex } from '@uiw/color-convert'; 4 5export default function Demo() { 6 const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 }); 7 const [disableAlpha, setDisableAlpha] = useState(false); 8 return ( 9 <> 10 <label> 11 <input 12 type="checkbox" 13 checked={disableAlpha} 14 onChange={(evn) => setDisableAlpha(evn.target.checked)} 15 /> 16 {disableAlpha ? "Hide" : "Show"} Alpha 17 </label> 18 <Colorful 19 color={hsva} 20 disableAlpha={disableAlpha} 21 onChange={(color) => { 22 setHsva(color.hsva); 23 }} 24 /> 25 <div style={{ background: hsvaToHex(hsva), marginTop: 30, padding: 10 }}> 26 {JSON.stringify(hsva)} 27 </div> 28 </> 29 ); 30}
1import React from 'react'; 2import { HsvaColor, ColorResult } from '@uiw/color-convert'; 3export interface ColorfulProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'color'> { 4 prefixCls?: string; 5 onChange?: (color: ColorResult) => void; 6 color?: string | HsvaColor; 7 disableAlpha?: boolean; 8} 9declare const Colorful: React.ForwardRefExoticComponent<ColorfulProps & React.RefAttributes<HTMLDivElement>>; 10export default Colorful;
As always, thanks to our amazing contributors!
Made with contributors.
Licensed under the MIT License.
No vulnerabilities found.
Reason
18 commit(s) and 7 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
packaging workflow detected
Details
Reason
Found 4/30 approved changesets -- score normalized to 1
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
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-06-30
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