sigilUI

Color Picker

Choose a color with a visual picker and editable value.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

import { ColorPicker } from "@sigil-ui/components";

Usage

<ColorPicker defaultValue="oklch(0.62 0.20 264)" />

Props

PropTypeDefaultDescription
valuestring—The current controlled value.
defaultValuestring—Initial value when the component manages its own state.
onChange(color: string) => void—Called when the value changes.
swatchesstring[]—Swatches configuration.
disabledboolean—Prevents user interaction when enabled.

Token integration

CSS VariablePurpose
--s-radius-mdRadius md
--s-borderBorder
--s-border-styleBorder style
--s-input-heightInput height
--s-font-monoFont mono
--s-radius-inputRadius input
--s-backgroundBackground
--s-textText
--s-primaryPrimary
--s-duration-fastDuration fast
--s-radius-smRadius sm