update type definition for containerRef in ColorPickerProps to allow null

This commit is contained in:
Maze Winther 2026-02-01 01:44:48 +01:00
parent b7293dc552
commit d06b7c3b0f
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ interface ColorPickerProps {
value?: string;
onChange?: (value: string) => void;
className?: string;
containerRef?: React.RefObject<HTMLDivElement>;
containerRef?: React.RefObject<HTMLDivElement | null>;
}
const hexToHsv = (hex: string) => {