@@ -8,8 +8,9 @@ from reflex.vars import Var, BaseVar, ComputedVar
8
8
from reflex .event import EventChain , EventHandler , EventSpec
9
9
from reflex .style import Style
10
10
from reflex .components .component import Component
11
+ from reflex .vars import Var
11
12
from ..base import LiteralAlign , LiteralSpacing
12
- from .flex import Flex
13
+ from .flex import Flex , LiteralFlexDirection
13
14
14
15
class Stack (Flex ):
15
16
@overload
@@ -178,13 +179,13 @@ class VStack(Stack):
178
179
* children ,
179
180
spacing : Optional [LiteralSpacing ] = "2" ,
180
181
align : Optional [LiteralAlign ] = "start" ,
181
- as_child : Optional [Union [Var [bool ], bool ]] = None ,
182
182
direction : Optional [
183
183
Union [
184
184
Var [Literal ["row" , "column" , "row-reverse" , "column-reverse" ]],
185
185
Literal ["row" , "column" , "row-reverse" , "column-reverse" ],
186
186
]
187
187
] = None ,
188
+ as_child : Optional [Union [Var [bool ], bool ]] = None ,
188
189
justify : Optional [
189
190
Union [
190
191
Var [Literal ["start" , "center" , "end" , "between" ]],
@@ -296,8 +297,8 @@ class VStack(Stack):
296
297
*children: The children of the stack.
297
298
spacing: The spacing between each stack item.
298
299
align: The alignment of the stack items.
299
- as_child: Change the default rendered element for the one passed as a child, merging their props and behavior.
300
300
direction: How child items are layed out: "row" | "column" | "row-reverse" | "column-reverse"
301
+ as_child: Change the default rendered element for the one passed as a child, merging their props and behavior.
301
302
justify: Alignment of children along the cross axis: "start" | "center" | "end" | "between"
302
303
wrap: Whether children should wrap when they reach the end of their container: "nowrap" | "wrap" | "wrap-reverse"
303
304
access_key: Provides a hint for generating a keyboard shortcut for the current element.
@@ -337,13 +338,13 @@ class HStack(Stack):
337
338
* children ,
338
339
spacing : Optional [LiteralSpacing ] = "2" ,
339
340
align : Optional [LiteralAlign ] = "start" ,
340
- as_child : Optional [Union [Var [bool ], bool ]] = None ,
341
341
direction : Optional [
342
342
Union [
343
343
Var [Literal ["row" , "column" , "row-reverse" , "column-reverse" ]],
344
344
Literal ["row" , "column" , "row-reverse" , "column-reverse" ],
345
345
]
346
346
] = None ,
347
+ as_child : Optional [Union [Var [bool ], bool ]] = None ,
347
348
justify : Optional [
348
349
Union [
349
350
Var [Literal ["start" , "center" , "end" , "between" ]],
@@ -455,8 +456,8 @@ class HStack(Stack):
455
456
*children: The children of the stack.
456
457
spacing: The spacing between each stack item.
457
458
align: The alignment of the stack items.
458
- as_child: Change the default rendered element for the one passed as a child, merging their props and behavior.
459
459
direction: How child items are layed out: "row" | "column" | "row-reverse" | "column-reverse"
460
+ as_child: Change the default rendered element for the one passed as a child, merging their props and behavior.
460
461
justify: Alignment of children along the cross axis: "start" | "center" | "end" | "between"
461
462
wrap: Whether children should wrap when they reach the end of their container: "nowrap" | "wrap" | "wrap-reverse"
462
463
access_key: Provides a hint for generating a keyboard shortcut for the current element.
0 commit comments