/** * Color Picker Input * * A reusable color picker with a styled square swatch and hex text input. * Replaces native with a cohesive design. */ import { Label } from '@/components/ui/label'; import { Input } from '@/components/ui/input'; interface ColorPickerInputProps { label: string; value: string; onChange: (value: string) => void; id?: string; } export function ColorPickerInput({ label, value, onChange, id }: ColorPickerInputProps) { return (
onChange(e.target.value)} className="w-20 h-8 text-xs font-mono" id={id} />
); } export default ColorPickerInput;