From a1c39b9968215e139d6f56b81612e60b25ccd451 Mon Sep 17 00:00:00 2001 From: shu-qian <147619734+shu-qian@users.noreply.github.com> Date: Thu, 2 Nov 2023 02:51:23 +0800 Subject: [PATCH] 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 --- reflex/components/navigation/stepper.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reflex/components/navigation/stepper.py b/reflex/components/navigation/stepper.py index e99e9e820..2ca6d1cf2 100644 --- a/reflex/components/navigation/stepper.py +++ b/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]