A premium color picker component supporting HEX, RGB, and HSV controls with native EyeDropper support.
"use client"; import { useState } from 'react'; import { Flex, ColorPicker } from '@photonix/ultimate'; export default function ColorPickerBasicExample() { const [color, setColor] = useState('#F54545'); return ( <Flex gap="xl" align="center" justify="center" direction="column" p="xl"> <ColorPicker value={color} onChange={(val) => setColor(val)} /> </Flex> ); }
string
-
"#F54545"
((value: string, color: ColorPickerColor) => void)
boolean
true
false
The color picker can be completely disabled to prevent any user interactions.
"use client"; import { ColorPicker } from '@photonix/ultimate'; export default function ColorPickerDisabledExample() { return ( <ColorPicker disabled defaultValue="#3F51B5" /> ); }