瀏覽代碼

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

Mudassir Chapra 1 年之前
父節點
當前提交
0ce77c1ca9
共有 1 個文件被更改,包括 3 次插入0 次删除
  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]