Skip to content

Components

urcolor ships eight families of unstyled, accessible color picker primitives for Vue, React, Svelte and Angular. Each family is a set of parts you compose, and each works in any supported color space.

See them working together in the full preview.

The families

FamilyWhat it doesVueReactSvelteAngular
Color AreaTwo channels on a plane, one drag sets bothdocsdocsdocsdocs
Color SliderOne channel on a track, horizontal or verticaldocsdocsdocsdocs
Color FieldA numeric input per channel, with steppersdocsdocsdocsdocs
Color SwatchOne color as a filled elementdocsdocsdocsdocs
Swatch Picker / GroupA keyboard-navigable palettedocsdocsdocsdocs
Color RingOne channel on a circledocsdocsdocsdocs
Color TriangleTwo channels on a triangle, or three in barycentric modedocsdocsdocsdocs
Color WheelOne channel on the angle, another on the radiusdocsdocsdocsdocs

Alpha

Every family can show opacity. Sliders and fields take channel="alpha"; the area, slider and swatch take an alpha prop. The Gradient parts paint the transparency checkerboard behind their own canvas, so nothing else is needed to make it visible.

For step-by-step recipes, see How to, which shows all four frameworks side by side.