Gathering detailed insights and metrics for @spectrum-web-components/color-area
Gathering detailed insights and metrics for @spectrum-web-components/color-area
Gathering detailed insights and metrics for @spectrum-web-components/color-area
Gathering detailed insights and metrics for @spectrum-web-components/color-area
@spectrum-web-components/color-handle
The `<sp-color-handle>` is used to select a colour on an `<sp-color-area>`, `<sp-color-slider>`, or `<sp-color-wheel>`. It functions similarly to the handle on an `<sp-slider>`.
@swc-react/color-area
React and Next.js wrapper of the @spectrum-web-components/color-area component
@uxds-web-components/color-area
Spectrum Web Components
npm install @spectrum-web-components/color-area
Typescript
Module System
Node Version
NPM Version
TypeScript (66.41%)
CSS (31.37%)
JavaScript (2.07%)
HTML (0.08%)
Handlebars (0.06%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
Apache-2.0 License
1,405 Stars
4,923 Commits
229 Forks
46 Watchers
249 Branches
342 Contributors
Updated on Jul 17, 2025
Latest Version
1.7.0
Package Id
@spectrum-web-components/color-area@1.7.0
Unpacked Size
140.90 kB
Size
23.48 kB
File Count
38
NPM Version
10.8.1
Node Version
20.16.0
Published on
Jun 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
An <sp-color-area>
allows users to visually select two properties of a color simultaneously. It's commonly used together with a color slider or color wheel.
yarn add @spectrum-web-components/color-area
Import the side effectful registration of <sp-color-area>
via:
import '@spectrum-web-components/color-area/sp-color-area.js';
When looking to leverage the ColorArea
base class as a type and/or for extension purposes, do so via:
import { ColorArea } from '@spectrum-web-components/color-area';
When using the color elements, use el.color
to access the color
property, which should manage itself in the colour format supplied. For example, If you supply a color in rgb()
format, el.color
should return the color in rgb()
format, as well. In ColorArea, colours are formatted as hex values.
The current color formats supported are as follows:
1<sp-color-area></sp-color-area>
An <sp-color-area>
in a disabled state shows that an input exists, but is not available in that circumstance. This can be used to maintain layout continuity and communicate that the area may become available later.
1<sp-color-area disabled></sp-color-area>
An <sp-color-area>
’s height and width can be customized appropriately for its context.
1<sp-color-area 2 style=" 3 width: 72px; 4 height: 72px" 5></sp-color-area>
An <sp-color-area>
renders accessible labels for each axis: "saturation" and "luminosity".
Specify label-x
and label-y
attributes to override these defaults.
1<sp-color-area 2 label-x="Color intensity" 3 label-y="Color brightness" 4></sp-color-area>
No vulnerabilities found.
Reason
30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
no binaries found in the repo
Reason
security policy file detected
Details
Reason
Found 24/28 approved changesets -- score normalized to 8
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
36 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-14
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