Skip to main content

Function: useSliderContext()

Call Signature​

function useSliderContext(): SliderContextValue;

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

Everything here is derived during render, so there is no state to keep in sync: value comes from the props of Root and the rest follows from it.

Returns​

SliderContextValue

Call Signature​

function useSliderContext<T>(selector): T;

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

Everything here is derived during render, so there is no state to keep in sync: value comes from the props of Root and the rest follows from it.

Type Parameters​

Type Parameter
T

Parameters​

ParameterType
selector(state) => T

Returns​

T