Skip to main content

Type Alias: SliderContextValue

type SliderContextValue = object;

Defined in: react/src/components/Slider/context.tsx:7

Properties​

disabled​

disabled: boolean;

Defined in: react/src/components/Slider/context.tsx:16


max​

max: number;

Defined in: react/src/components/Slider/context.tsx:10


min​

min: number;

Defined in: react/src/components/Slider/context.tsx:9


onChange?​

optional onChange?: (value) => void;

Defined in: react/src/components/Slider/context.tsx:18

Parameters​

ParameterType
valuenumber

Returns​

void


orientation​

orientation: "horizontal" | "vertical";

Defined in: react/src/components/Slider/context.tsx:14


percent​

percent: number;

Defined in: react/src/components/Slider/context.tsx:23

Position of the thumb, 0-100, already accounting for the display direction implied by orientation and reverse.


readOnly​

readOnly: boolean;

Defined in: react/src/components/Slider/context.tsx:17


reverse​

reverse: boolean;

Defined in: react/src/components/Slider/context.tsx:15


scale​

scale: Scale;

Defined in: react/src/components/Slider/context.tsx:13

How the value is distributed across the travel.


step​

step: number;

Defined in: react/src/components/Slider/context.tsx:11


thumbRef​

thumbRef: RefObject<SliderThumbMethods | null>;

Defined in: react/src/components/Slider/context.tsx:28

Thumb registers itself here; Root focuses it when a drag starts.


trackRef​

trackRef: RefObject<HTMLDivElement | null>;

Defined in: react/src/components/Slider/context.tsx:26

Track registers its element here; Root normalizes the pointer against it.


value​

value: number;

Defined in: react/src/components/Slider/context.tsx:8