Interface ColorPickerProps

Props for the ColorPicker component.

interface ColorPickerProps {
    className?: string;
    containerClassName?: string;
    containerStyle?: CSSProperties;
    height?: string | number;
    hueSliderClassName?: string;
    hueSliderCursorClassName?: string;
    hueSliderHeight?: string | number;
    initialColor?: RGB;
    inputClassName?: string;
    onChange?: ((color: RGB) => void);
    previewClassName?: string;
    saturationValueAreaClassName?: string;
    saturationValueCursorClassName?: string;
    style?: CSSProperties;
    width?: string | number;
}

Properties

className?: string

Custom class name for the main container

containerClassName?: string

Custom class name for the outer container

containerStyle?: CSSProperties

Custom inline styles for the outer container

height?: string | number

Height of the color picker

hueSliderClassName?: string

Custom class name for the hue slider

hueSliderCursorClassName?: string

Custom class name for the hue slider cursor

hueSliderHeight?: string | number

Height of the hue slider

initialColor?: RGB

Initial color value in RGB format

inputClassName?: string

Custom class name for the hex input field

onChange?: ((color: RGB) => void)

Callback function triggered when the color changes

previewClassName?: string

Custom class name for the color preview box

saturationValueAreaClassName?: string

Custom class name for the saturation-value area

saturationValueCursorClassName?: string

Custom class name for the saturation-value cursor

style?: CSSProperties

Custom inline styles for the main container

width?: string | number

Width of the color picker