Browse Source

Added the `step` prop to `Slider`[Issue #1639] (#1643)

Mudassir Chapra 1 năm trước cách đây
mục cha
commit
0ce77c1ca9
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      reflex/components/forms/slider.py

+ 3 - 0
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]