Sfoglia il codice sorgente

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

Mudassir Chapra 1 anno fa
parent
commit
0ce77c1ca9
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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]