slider
function adds an interactive slider to your app, enabling users to input numerical values within a specified range. This is especially useful for dynamic controls, such as selecting a range or adjusting parameters.
label
(str): The label displayed next to the slider, indicating its purpose.min_val
(float): The minimum value the slider can take.max_val
(float): The maximum value the slider can take.step
(int): The step size between values on the slider.default
(float): (Optional) The initial/default value of the slider.size
(float): (Optional) The width of the component in a row. Defaults to 1.0
(full row). See the Layout Guide for details.float
containing the current value.min_val
and max_val
.step
parameter.default
parameter.slider
?slider
! 🛠️