ColorPicker

Color picker with swatch grid, hex code input, and opacity slider.

API Reference

PropTypeDefaultDescription
valuestring"#3B82F6"Current hex color value
opacitynumber100Color opacity (0–100)
onValueChange(color: string) => voidCalled when color changes
onOpacityChange(opacity: number) => voidCalled when opacity changes
presetsstring[]Array of hex color presets
classNamestringAdditional CSS classes

Source Code