ColorPicker
A color selection control with hex, RGB, and HSB format support.
When to Use
- For theme customization or branding settings
- When users need to choose a specific color
- For design tools or visual editors
Import
Examples
Basic
With Text
Presets
Sizes
API
ColorPickerProps
value—string | Color— Selected color (controlled)defaultValue—string | Color— Default coloronChange—(value: Color, hex: string) => void— Change handlerformat—"hex" | "rgb" | "hsb"— Color formatshowText—boolean | (color) => ReactNode— Show color textpresets—{ label: string; colors: string[] }[]— Preset color groupsdisabledAlpha—boolean— Disable alpha channel (default:false)allowClear—boolean— Allow clearing the colorsize—"small" | "middle" | "large"— Trigger sizetrigger—"click" | "hover"— Open trigger (default:"click")disabled—boolean— Disable the picker