Installation
npx shadcn@latest add @iconiq/color-pickerProps
ColorPicker
Self-contained HSV panel with saturation field, hue/alpha sliders, multi-format readouts, and EyeDropper.
valuestringdefaultValuestringDefault #3B82F6
onChange(color: string) => voiddefaultAlphanumberDefault 100
disabledbooleanDefault false
showEyedropperbooleanDefault true
onEyedropperUnsupported() => voidclassNamestringInstall with npx shadcn@latest add https://iconiqui.com/r/color-picker.json (requires lucide-react, motion, and a cn helper).
Theme tokens are embedded on the root node so the picker works without iconiq-theme, though it still maps cleanly to shadcn semantic colors.
The saturation square, hue slider, and alpha slider share one RGB source of truth. Slider drags emit on pointer up to stay stable in controlled mode.
Format switching exposes editable HEX, RGB, HSL, and OKLCH channels. Values commit on blur or Enter so partial typing does not fight the live color state.
EyeDropper support depends on the browser API (Chrome/Edge). Use onEyedropperUnsupported for user-facing feedback.
FluidColorPicker remains exported as a backward-compatible alias for older imports.
Registry bundle
Install the exact registry entry shown on the right when you want the component file and its declared runtime dependencies together.
Dependencies: lucide-react, motion.
This page documents the shared Iconiq color picker. Base UI and Radix UI options are disabled because there is no primitive-specific variant.
The generated registry file is /r/color-picker.json.