UseSliderReturnValue

external interface UseSliderReturnValue(source)

Properties

Link copied to clipboard
abstract var active: Number

The active index of the slider.

Link copied to clipboard
abstract var axis: dynamic

The orientation of the slider.

Link copied to clipboard
abstract var axisProps: Props

Returns the offset and leap methods to calculate the positioning styles based on the slider axis.

Link copied to clipboard
abstract var dragging: Boolean

If true, the slider is being dragged.

Link copied to clipboard

The index of the thumb which is focused on the slider.

Link copied to clipboard

Resolver for the hidden input slot's props.

Link copied to clipboard
abstract var getRootProps: Props

Resolver for the root slot's props.

Link copied to clipboard
abstract var getThumbProps: Props

Resolver for the thumb slot's props.

Link copied to clipboard
abstract var getThumbStyle: (index: Number) -> Any

Resolver for the thumb slot's style prop.

Link copied to clipboard
abstract var marks: dynamic

The marks of the slider. Marks indicate predetermined values to which the user can move the slider.

Link copied to clipboard
abstract var open: Number

The thumb index for the current value when in hover state.

Link copied to clipboard
abstract var range: Boolean

If true, the slider is a range slider when the value prop passed is an array.

Link copied to clipboard
abstract var rootRef: RefCallback<Element>?

Ref to the root slot's DOM node.

Link copied to clipboard
abstract var trackLeap: Number

The track leap for the current value of the slider.

Link copied to clipboard
abstract var trackOffset: Number

The track offset for the current value of the slider.

Link copied to clipboard
abstract var values: dynamic

The possible values of the slider.