瀏覽代碼

Add 'orientation' Property to Reflex Stepper Components (#2089)

* Added 'orientation' property to Stepper

* import Literal in reflex/components/navigation/stepper.py

* Update reflex/components/navigation/stepper.py

---------

Co-authored-by: sq <1838545301@qq.com>
Co-authored-by: Masen Furer <m_github@0x26.net>
shu-qian 1 年之前
父節點
當前提交
a1c39b9968
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      reflex/components/navigation/stepper.py

+ 3 - 1
reflex/components/navigation/stepper.py

@@ -1,6 +1,6 @@
 """A component to indicate progress through a multi-step process."""
 
-from typing import List, Optional, Tuple
+from typing import List, Literal, Optional, Tuple
 
 from reflex.components.component import Component
 from reflex.components.libs.chakra import ChakraComponent, LiteralColorScheme
@@ -12,6 +12,8 @@ class Stepper(ChakraComponent):
 
     tag = "Stepper"
 
+    orientation: Var[Literal["vertical", "horizontal"]]
+
     # The color scheme to use for the stepper; default is blue.
     colorScheme: Var[LiteralColorScheme]