Gathering detailed insights and metrics for @spectrum-web-components/color-slider
Gathering detailed insights and metrics for @spectrum-web-components/color-slider
Gathering detailed insights and metrics for @spectrum-web-components/color-slider
Gathering detailed insights and metrics for @spectrum-web-components/color-slider
@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>`.
@spectrum-web-components/color-area
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.
@swc-react/color-slider
React and Next.js wrapper of the @spectrum-web-components/color-slider component
@uxds-web-components/color-slider
Spectrum Web Components
npm install @spectrum-web-components/color-slider
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-slider@1.7.0
Unpacked Size
105.68 kB
Size
16.70 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-slider>
lets users visually change an individual channel of a color. The background of the <sp-color-slider>
is a visual representation of the range of values a user can select from. This can represent color properties such as hues, color channel values (such as RGB or CMYK levels), or opacity. Currently, the slider only supports leveraging the hue
property.
yarn add @spectrum-web-components/color-slider
Import the side effectful registration of <sp-color-slider>
via:
import '@spectrum-web-components/color-slider/sp-color-slider.js';
When looking to leverage the ColorSlider
base class as a type and/or for extension purposes, do so via:
import { ColorSlider } from '@spectrum-web-components/color-slider';
When using the color elements, use el.color
to access the color
property, which should manage itself in the colour format supplied. If you supply a color in rgb()
format, el.color
should return the color in rgb()
format, as well.
The current color formats supported are as follows:
Please note for the following formats: HSV, HSVA, HSL, HSLA
When using the HSL or HSV formats, and a color's value (in HSV) is set to 0, or its luminosity (in HSL) is set to 0 or 1, the hue and saturation values may not be preserved by the element's color
property. This is detailed in the colorjs documentation. Seperately, the element's value
property is directly managed by the hue as represented in the interface.
1<sp-color-slider></sp-color-slider>
1<sp-color-slider vertical></sp-color-slider>
1<sp-color-slider disabled></sp-color-slider>
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