Skip to contents

The slider() component represents a numerical range and a handle (grip). The purpose of the component is to enable visual selection of a value in a continuous numerical range by moving an adjustable handle.

See the official documention for slider, for all the correct props.

Examples

slider(
  "slider",
  min = 0,
  max = 100,
  step = 5
)
slider(
  "slider",
  min = 0,
  max = 100,
  step = 5,
  `show-tooltip` = TRUE
)
slider(
  "slider",
  min = 0,
  max = 100,
  step = 5,
  `show-tooltip` = TRUE,
  `show-tickmarks` = TRUE,
  `label-interval` = 2
)