소스 검색

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]