← 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.
| Argument | Type | Default | Description |
|---|---|---|---|
| input_id | character | required | Shiny input binding ID. |
| value | numeric | list | required | Initial active slider single value or range bounds list. |
| min | numeric | required | Boundary minimum limit range. |
| max | numeric | required | Boundary maximum limit range. |
| step | numeric | NULL | Interval steps numeric intervals. |
| ticks | logical | FALSE | Render numeric label grid ticks. |
| orientation | 'horizontal' | 'vertical' | 'horizontal' | Slider rail orientation. |
| show_value | logical | FALSE | Show the current value or range next to the rail. |
| min_label | character | NULL | Optional label at the minimum end of the rail. |
| max_label | character | NULL | Optional label at the maximum end of the rail. |
| width | character | NULL | CSS width applied to horizontal slider wrappers. |
| disabled | logical | FALSE | Disable user drag interaction. |
| invalid | logical | FALSE | Show validation warning colors. |
| style | character | NULL | Custom inline stylesheet styling. |
| class | character | NULL | CSS styles container classes. |
update_block_slider()
Updates selection value arrays, error borders, or click blocks on the fly.
| Argument | Type | Default | Description |
|---|---|---|---|
| session | ShinySession | required | Shiny web session context. |
| input_id | character | required | Slider component identifier. |
| value | numeric | list | NULL | Set new selection values. |
| min | numeric | NULL | Update the minimum bound. |
| max | numeric | NULL | Update the maximum bound. |
| step | numeric | NULL | Update pointer and keyboard step size. |
| orientation | 'horizontal' | 'vertical' | NULL | Update slider rail orientation. |
| show_value | logical | NULL | Toggle the current-value label. |
| min_label | character | NULL | Update or clear the minimum label. |
| max_label | character | NULL | Update or clear the maximum label. |
| disabled | logical | NULL | Freeze/unfreeze slider controls. |
| invalid | logical | NULL | Update validation error border outlines. |