← Back to Components

Slider

Interactive range controls for single values or interval bounds.

Interactive Playground

R Code

API Reference

block_slider()

High-fidelity interactive visual range input sliders, supporting both single indicators and dual boundary ranges.

ArgumentTypeDefaultDescription
input_idcharacterrequiredShiny input binding ID.
valuenumeric | listrequiredInitial active slider single value or range bounds list.
minnumericrequiredBoundary minimum limit range.
maxnumericrequiredBoundary maximum limit range.
stepnumericNULLInterval steps numeric intervals.
tickslogicalFALSERender numeric label grid ticks.
orientation'horizontal' | 'vertical''horizontal'Slider rail orientation.
show_valuelogicalFALSEShow the current value or range next to the rail.
min_labelcharacterNULLOptional label at the minimum end of the rail.
max_labelcharacterNULLOptional label at the maximum end of the rail.
widthcharacterNULLCSS width applied to horizontal slider wrappers.
disabledlogicalFALSEDisable user drag interaction.
invalidlogicalFALSEShow validation warning colors.
stylecharacterNULLCustom inline stylesheet styling.
classcharacterNULLCSS styles container classes.

update_block_slider()

Updates selection value arrays, error borders, or click blocks on the fly.

ArgumentTypeDefaultDescription
sessionShinySessionrequiredShiny web session context.
input_idcharacterrequiredSlider component identifier.
valuenumeric | listNULLSet new selection values.
minnumericNULLUpdate the minimum bound.
maxnumericNULLUpdate the maximum bound.
stepnumericNULLUpdate pointer and keyboard step size.
orientation'horizontal' | 'vertical'NULLUpdate slider rail orientation.
show_valuelogicalNULLToggle the current-value label.
min_labelcharacterNULLUpdate or clear the minimum label.
max_labelcharacterNULLUpdate or clear the maximum label.
disabledlogicalNULLFreeze/unfreeze slider controls.
invalidlogicalNULLUpdate validation error border outlines.