'use client'; import { HexColorPicker } from 'react-colorful'; import { Input } from '@/components/ui/input'; import { cn } from '@/lib/utils/cn'; interface ColorPickerProps { color: string; onChange: (color: string) => void; className?: string; } export function ColorPicker({ color, onChange, className }: ColorPickerProps) { const handleInputChange = (e: React.ChangeEvent) => { const value = e.target.value; // Allow partial input while typing onChange(value); }; return (
); }