From 0ce77c1ca96363e3e265bc63e638ed54770a4427 Mon Sep 17 00:00:00 2001 From: Mudassir Chapra <37051110+muddi900@users.noreply.github.com> Date: Tue, 22 Aug 2023 03:10:52 +0500 Subject: [PATCH] Added the `step` prop to `Slider`[Issue #1639] (#1643) --- reflex/components/forms/slider.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/reflex/components/forms/slider.py b/reflex/components/forms/slider.py index 351d2f0bc..ed2cf2688 100644 --- a/reflex/components/forms/slider.py +++ b/reflex/components/forms/slider.py @@ -43,6 +43,9 @@ class Slider(ChakraComponent): # The maximum value of the slider. max_: Var[int] + # The step in which increments/decrements have to be made + step: Var[int] + # The minimum distance between slider thumbs. Useful for preventing the thumbs from being too close together. min_steps_between_thumbs: Var[int]