Skip to main content

Function: useKnobContext()

Call Signature​

function useKnobContext(): KnobContextValue;

Defined in: react/src/components/Knob/context.tsx:27

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​

KnobContextValue

Call Signature​

function useKnobContext<T>(selector): T;

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

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