Gathering detailed insights and metrics for @uiw/react-color-saturation
Gathering detailed insights and metrics for @uiw/react-color-saturation
Gathering detailed insights and metrics for @uiw/react-color-saturation
Gathering detailed insights and metrics for @uiw/react-color-saturation
🎨 Is a tiny color picker widget component for React apps.
npm install @uiw/react-color-saturation
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-saturation@2.7.1
Unpacked Size
16.94 kB
Size
4.24 kB
File Count
12
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
2
3
1
Saturation Component is a subcomponent of @react-color
.
1npm i @uiw/react-color-saturation
1import React, { useState } from 'react'; 2import Saturation from '@uiw/react-color-saturation'; 3 4export default function Demo() { 5 const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 }); 6 return ( 7 <Saturation 8 hsva={hsva} 9 onChange={(newColor) => { 10 setHsva({ ...hsva, ...newColor, a: hsva.a }); 11 }} 12 /> 13 ); 14}
The value of hsva
does not exist
1import React from 'react'; 2import Saturation from '@uiw/react-color-saturation'; 3 4export default function Demo() { 5 return ( 6 <div style={{ display: 'flex', gap: 10 }}> 7 <Saturation hue={122} /> 8 <Saturation hue={210} /> 9 <Saturation hue={23} /> 10 </div> 11 ); 12}
1import React from 'react'; 2import { HsvaColor } from '@uiw/color-convert'; 3import { PointerProps } from './Pointer'; 4export interface SaturationProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> { 5 prefixCls?: string; 6 /** hsva => `{ h: 0, s: 75, v: 82, a: 1 }` */ 7 hsva?: HsvaColor; 8 hue?: number; 9 radius?: React.CSSProperties['borderRadius']; 10 /** React Component, Custom pointer component */ 11 pointer?: ({ prefixCls, left, top, color }: PointerProps) => JSX.Element; 12 onChange?: (newColor: HsvaColor) => void; 13} 14declare const Saturation: React.ForwardRefExoticComponent<SaturationProps & React.RefAttributes<HTMLDivElement>>; 15export default Saturation;
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