Interface HueSliderProps

interface HueSliderProps {
    className?: string;
    disabled?: boolean;
    hue: number;
    onHueChange?: ((position) => void);
    onHueChangeEnd?: (() => void);
    onHueChangeStart?: (() => void);
    styles?: SliderStyles;
}

Properties

className?: string

optional CSS class name

disabled?: boolean

whether this slider is disabled or not

hue: number

current value of the hue slider

onHueChange?: ((position) => void)

called when the current value is updated

Type declaration

    • (position): void
    • called when the current value is updated

      Parameters

      • position: number

      Returns void

onHueChangeEnd?: (() => void)

called when drag ends

Type declaration

    • (): void
    • called when drag ends

      Returns void

onHueChangeStart?: (() => void)

called when drag starts

Type declaration

    • (): void
    • called when drag starts

      Returns void

styles?: SliderStyles

CSS style values for the slider

Generated using TypeDoc