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) => void—Called when color changes
onOpacityChange(opacity: number) => void—Called when opacity changes
presetsstring[]—Array of hex color presets
classNamestring—Additional CSS classes

Source Code