pyi fix
This commit is contained in:
parent
c8ea434cc1
commit
81da27c777
@ -143,6 +143,7 @@ class ConnectionBanner(Component):
|
|||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
cls,
|
cls,
|
||||||
*children,
|
*children,
|
||||||
|
comp: Optional[Union[Component, Var[Optional[Component]]]] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -168,9 +169,6 @@ class ConnectionBanner(Component):
|
|||||||
) -> "ConnectionBanner":
|
) -> "ConnectionBanner":
|
||||||
"""Create a connection banner component.
|
"""Create a connection banner component.
|
||||||
|
|
||||||
Args:
|
|
||||||
comp: The component to render when there's a server connection error.
|
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
The connection banner component.
|
The connection banner component.
|
||||||
"""
|
"""
|
||||||
@ -182,6 +180,7 @@ class ConnectionModal(Component):
|
|||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
cls,
|
cls,
|
||||||
*children,
|
*children,
|
||||||
|
comp: Optional[Union[Component, Var[Optional[Component]]]] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -207,9 +206,6 @@ class ConnectionModal(Component):
|
|||||||
) -> "ConnectionModal":
|
) -> "ConnectionModal":
|
||||||
"""Create a connection banner component.
|
"""Create a connection banner component.
|
||||||
|
|
||||||
Args:
|
|
||||||
comp: The component to render when there's a server connection error.
|
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
The connection banner component.
|
The connection banner component.
|
||||||
"""
|
"""
|
||||||
|
@ -356,8 +356,6 @@ class CodeBlock(Component):
|
|||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
cls,
|
cls,
|
||||||
*children,
|
*children,
|
||||||
can_copy: Optional[bool] = False,
|
|
||||||
copy_button: Optional[Union[Component, bool]] = None,
|
|
||||||
theme: Optional[Union[Theme, Var[Union[Theme, str]], str]] = None,
|
theme: Optional[Union[Theme, Var[Union[Theme, str]], str]] = None,
|
||||||
language: Optional[
|
language: Optional[
|
||||||
Union[
|
Union[
|
||||||
@ -933,6 +931,10 @@ class CodeBlock(Component):
|
|||||||
wrap_long_lines: Optional[Union[Var[bool], bool]] = None,
|
wrap_long_lines: Optional[Union[Var[bool], bool]] = None,
|
||||||
custom_style: Optional[Dict[str, Union[str, Var, Color]]] = None,
|
custom_style: Optional[Dict[str, Union[str, Var, Color]]] = None,
|
||||||
code_tag_props: Optional[Union[Dict[str, str], Var[Dict[str, str]]]] = None,
|
code_tag_props: Optional[Union[Dict[str, str], Var[Dict[str, str]]]] = None,
|
||||||
|
can_copy: Optional[Union[Var[Optional[bool]], bool]] = None,
|
||||||
|
copy_button: Optional[
|
||||||
|
Union[Component, Var[Optional[Union[Component, bool]]], bool]
|
||||||
|
] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -960,8 +962,6 @@ class CodeBlock(Component):
|
|||||||
|
|
||||||
Args:
|
Args:
|
||||||
*children: The children of the component.
|
*children: The children of the component.
|
||||||
can_copy: Whether a copy button should appears.
|
|
||||||
copy_button: A custom copy button to override the default one.
|
|
||||||
theme: The theme to use ("light" or "dark").
|
theme: The theme to use ("light" or "dark").
|
||||||
language: The language to use.
|
language: The language to use.
|
||||||
code: The code to display.
|
code: The code to display.
|
||||||
@ -970,6 +970,8 @@ class CodeBlock(Component):
|
|||||||
wrap_long_lines: Whether to wrap long lines.
|
wrap_long_lines: Whether to wrap long lines.
|
||||||
custom_style: A custom style for the code block.
|
custom_style: A custom style for the code block.
|
||||||
code_tag_props: Props passed down to the code tag.
|
code_tag_props: Props passed down to the code tag.
|
||||||
|
can_copy: Whether a copy button should appear.
|
||||||
|
copy_button: A custom copy button to override the default one.
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
@ -991,8 +993,6 @@ class CodeblockNamespace(ComponentNamespace):
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def __call__(
|
def __call__(
|
||||||
*children,
|
*children,
|
||||||
can_copy: Optional[bool] = False,
|
|
||||||
copy_button: Optional[Union[Component, bool]] = None,
|
|
||||||
theme: Optional[Union[Theme, Var[Union[Theme, str]], str]] = None,
|
theme: Optional[Union[Theme, Var[Union[Theme, str]], str]] = None,
|
||||||
language: Optional[
|
language: Optional[
|
||||||
Union[
|
Union[
|
||||||
@ -1568,6 +1568,10 @@ class CodeblockNamespace(ComponentNamespace):
|
|||||||
wrap_long_lines: Optional[Union[Var[bool], bool]] = None,
|
wrap_long_lines: Optional[Union[Var[bool], bool]] = None,
|
||||||
custom_style: Optional[Dict[str, Union[str, Var, Color]]] = None,
|
custom_style: Optional[Dict[str, Union[str, Var, Color]]] = None,
|
||||||
code_tag_props: Optional[Union[Dict[str, str], Var[Dict[str, str]]]] = None,
|
code_tag_props: Optional[Union[Dict[str, str], Var[Dict[str, str]]]] = None,
|
||||||
|
can_copy: Optional[Union[Var[Optional[bool]], bool]] = None,
|
||||||
|
copy_button: Optional[
|
||||||
|
Union[Component, Var[Optional[Union[Component, bool]]], bool]
|
||||||
|
] = None,
|
||||||
style: Optional[Style] = None,
|
style: Optional[Style] = None,
|
||||||
key: Optional[Any] = None,
|
key: Optional[Any] = None,
|
||||||
id: Optional[Any] = None,
|
id: Optional[Any] = None,
|
||||||
@ -1595,8 +1599,6 @@ class CodeblockNamespace(ComponentNamespace):
|
|||||||
|
|
||||||
Args:
|
Args:
|
||||||
*children: The children of the component.
|
*children: The children of the component.
|
||||||
can_copy: Whether a copy button should appears.
|
|
||||||
copy_button: A custom copy button to override the default one.
|
|
||||||
theme: The theme to use ("light" or "dark").
|
theme: The theme to use ("light" or "dark").
|
||||||
language: The language to use.
|
language: The language to use.
|
||||||
code: The code to display.
|
code: The code to display.
|
||||||
@ -1605,6 +1607,8 @@ class CodeblockNamespace(ComponentNamespace):
|
|||||||
wrap_long_lines: Whether to wrap long lines.
|
wrap_long_lines: Whether to wrap long lines.
|
||||||
custom_style: A custom style for the code block.
|
custom_style: A custom style for the code block.
|
||||||
code_tag_props: Props passed down to the code tag.
|
code_tag_props: Props passed down to the code tag.
|
||||||
|
can_copy: Whether a copy button should appear.
|
||||||
|
copy_button: A custom copy button to override the default one.
|
||||||
style: The style of the component.
|
style: The style of the component.
|
||||||
key: A unique key for the component.
|
key: A unique key for the component.
|
||||||
id: The id for the component.
|
id: The id for the component.
|
||||||
|
@ -302,10 +302,14 @@ class AccordionItem(AccordionComponent):
|
|||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
cls,
|
cls,
|
||||||
*children,
|
*children,
|
||||||
header: Optional[Union[Component, Var]] = None,
|
|
||||||
content: Optional[Union[Component, Var]] = None,
|
|
||||||
value: Optional[Union[Var[str], str]] = None,
|
value: Optional[Union[Var[str], str]] = None,
|
||||||
disabled: Optional[Union[Var[bool], bool]] = None,
|
disabled: Optional[Union[Var[bool], bool]] = None,
|
||||||
|
header: Optional[
|
||||||
|
Union[Component, Var[Optional[Union[Component, str]]], str]
|
||||||
|
] = None,
|
||||||
|
content: Optional[
|
||||||
|
Union[Component, Var[Optional[Union[Component, str]]], str]
|
||||||
|
] = None,
|
||||||
color_scheme: Optional[
|
color_scheme: Optional[
|
||||||
Union[
|
Union[
|
||||||
Literal[
|
Literal[
|
||||||
@ -402,10 +406,10 @@ class AccordionItem(AccordionComponent):
|
|||||||
|
|
||||||
Args:
|
Args:
|
||||||
*children: The list of children to use if header and content are not provided.
|
*children: The list of children to use if header and content are not provided.
|
||||||
header: The header of the accordion item.
|
|
||||||
content: The content of the accordion item.
|
|
||||||
value: A unique identifier for the item.
|
value: A unique identifier for the item.
|
||||||
disabled: When true, prevents the user from interacting with the item.
|
disabled: When true, prevents the user from interacting with the item.
|
||||||
|
header: The header of the accordion item.
|
||||||
|
content: The content of the accordion item.
|
||||||
color_scheme: The color scheme of the component.
|
color_scheme: The color scheme of the component.
|
||||||
variant: The variant of the component.
|
variant: The variant of the component.
|
||||||
as_child: Change the default rendered element for the one passed as a child.
|
as_child: Change the default rendered element for the one passed as a child.
|
||||||
|
@ -75,6 +75,17 @@ class ColorModeIconButton(IconButton):
|
|||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
cls,
|
cls,
|
||||||
*children,
|
*children,
|
||||||
|
position: Optional[
|
||||||
|
Union[
|
||||||
|
Literal["bottom-left", "bottom-right", "top-left", "top-right"],
|
||||||
|
Var[
|
||||||
|
Optional[
|
||||||
|
Literal["bottom-left", "bottom-right", "top-left", "top-right"]
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
allow_system: Optional[Union[Var[bool], bool]] = None,
|
||||||
as_child: Optional[Union[Var[bool], bool]] = None,
|
as_child: Optional[Union[Var[bool], bool]] = None,
|
||||||
size: Optional[
|
size: Optional[
|
||||||
Union[
|
Union[
|
||||||
|
@ -22,7 +22,6 @@ class Slider(RadixThemesComponent):
|
|||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
cls,
|
cls,
|
||||||
*children,
|
*children,
|
||||||
width: Optional[str] = "100%",
|
|
||||||
as_child: Optional[Union[Var[bool], bool]] = None,
|
as_child: Optional[Union[Var[bool], bool]] = None,
|
||||||
size: Optional[
|
size: Optional[
|
||||||
Union[
|
Union[
|
||||||
@ -121,6 +120,7 @@ class Slider(RadixThemesComponent):
|
|||||||
Union[List[Union[float, int]], Var[List[Union[float, int]]]]
|
Union[List[Union[float, int]], Var[List[Union[float, int]]]]
|
||||||
] = None,
|
] = None,
|
||||||
name: Optional[Union[Var[str], str]] = None,
|
name: Optional[Union[Var[str], str]] = None,
|
||||||
|
width: Optional[Union[Var[Optional[str]], str]] = None,
|
||||||
min: Optional[Union[Var[Union[float, int]], float, int]] = None,
|
min: Optional[Union[Var[Union[float, int]], float, int]] = None,
|
||||||
max: Optional[Union[Var[Union[float, int]], float, int]] = None,
|
max: Optional[Union[Var[Union[float, int]], float, int]] = None,
|
||||||
step: Optional[Union[Var[Union[float, int]], float, int]] = None,
|
step: Optional[Union[Var[Union[float, int]], float, int]] = None,
|
||||||
@ -160,7 +160,6 @@ class Slider(RadixThemesComponent):
|
|||||||
|
|
||||||
Args:
|
Args:
|
||||||
*children: The children of the component.
|
*children: The children of the component.
|
||||||
width: The width of the slider.
|
|
||||||
as_child: Change the default rendered element for the one passed as a child, merging their props and behavior.
|
as_child: Change the default rendered element for the one passed as a child, merging their props and behavior.
|
||||||
size: Button size "1" - "3"
|
size: Button size "1" - "3"
|
||||||
variant: Variant of button
|
variant: Variant of button
|
||||||
@ -170,6 +169,7 @@ class Slider(RadixThemesComponent):
|
|||||||
default_value: The value of the slider when initially rendered. Use when you do not need to control the state of the slider.
|
default_value: The value of the slider when initially rendered. Use when you do not need to control the state of the slider.
|
||||||
value: The controlled value of the slider. Must be used in conjunction with onValueChange.
|
value: The controlled value of the slider. Must be used in conjunction with onValueChange.
|
||||||
name: The name of the slider. Submitted with its owning form as part of a name/value pair.
|
name: The name of the slider. Submitted with its owning form as part of a name/value pair.
|
||||||
|
width: The width of the slider.
|
||||||
min: The minimum value of the slider.
|
min: The minimum value of the slider.
|
||||||
max: The maximum value of the slider.
|
max: The maximum value of the slider.
|
||||||
step: The step value of the slider.
|
step: The step value of the slider.
|
||||||
|
@ -134,8 +134,50 @@ class UnorderedList(BaseList, Ul):
|
|||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
cls,
|
cls,
|
||||||
*children,
|
*children,
|
||||||
items: Optional[Union[Iterable, Var[Iterable]]] = None,
|
list_style_type: Optional[
|
||||||
list_style_type: Optional[LiteralListStyleTypeUnordered] = "disc",
|
Union[
|
||||||
|
Literal[
|
||||||
|
"armenian",
|
||||||
|
"decimal",
|
||||||
|
"decimal-leading-zero",
|
||||||
|
"georgian",
|
||||||
|
"hiragana",
|
||||||
|
"katakana",
|
||||||
|
"lower-alpha",
|
||||||
|
"lower-greek",
|
||||||
|
"lower-latin",
|
||||||
|
"lower-roman",
|
||||||
|
"none",
|
||||||
|
"upper-alpha",
|
||||||
|
"upper-latin",
|
||||||
|
"upper-roman",
|
||||||
|
],
|
||||||
|
Var[
|
||||||
|
Literal[
|
||||||
|
"armenian",
|
||||||
|
"decimal",
|
||||||
|
"decimal-leading-zero",
|
||||||
|
"georgian",
|
||||||
|
"hiragana",
|
||||||
|
"katakana",
|
||||||
|
"lower-alpha",
|
||||||
|
"lower-greek",
|
||||||
|
"lower-latin",
|
||||||
|
"lower-roman",
|
||||||
|
"none",
|
||||||
|
"upper-alpha",
|
||||||
|
"upper-latin",
|
||||||
|
"upper-roman",
|
||||||
|
]
|
||||||
|
],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
items: Optional[
|
||||||
|
Union[
|
||||||
|
Union[Iterable, Var[Iterable]],
|
||||||
|
Var[Optional[Union[Iterable, Var[Iterable]]]],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
|
||||||
auto_capitalize: Optional[
|
auto_capitalize: Optional[
|
||||||
Union[Var[Union[bool, int, str]], bool, int, str]
|
Union[Var[Union[bool, int, str]], bool, int, str]
|
||||||
@ -187,8 +229,8 @@ class UnorderedList(BaseList, Ul):
|
|||||||
|
|
||||||
Args:
|
Args:
|
||||||
*children: The children of the component.
|
*children: The children of the component.
|
||||||
|
list_style_type: The style of the list. Default to "none".
|
||||||
items: A list of items to add to the list.
|
items: A list of items to add to the list.
|
||||||
list_style_type: The style of the list.
|
|
||||||
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
access_key: Provides a hint for generating a keyboard shortcut for the current element.
|
||||||
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
|
||||||
content_editable: Indicates whether the element's content is editable.
|
content_editable: Indicates whether the element's content is editable.
|
||||||
|
@ -10,7 +10,6 @@ from reflex.event import EventType
|
|||||||
from reflex.style import Style
|
from reflex.style import Style
|
||||||
from reflex.vars.base import Var
|
from reflex.vars.base import Var
|
||||||
|
|
||||||
from ..base import LiteralAlign, LiteralSpacing
|
|
||||||
from .flex import Flex
|
from .flex import Flex
|
||||||
|
|
||||||
class Stack(Flex):
|
class Stack(Flex):
|
||||||
@ -19,8 +18,18 @@ class Stack(Flex):
|
|||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
cls,
|
cls,
|
||||||
*children,
|
*children,
|
||||||
spacing: Optional[LiteralSpacing] = "3",
|
spacing: Optional[
|
||||||
align: Optional[LiteralAlign] = "start",
|
Union[
|
||||||
|
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
||||||
|
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
align: Optional[
|
||||||
|
Union[
|
||||||
|
Literal["baseline", "center", "end", "start", "stretch"],
|
||||||
|
Var[Literal["baseline", "center", "end", "start", "stretch"]],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
as_child: Optional[Union[Var[bool], bool]] = None,
|
as_child: Optional[Union[Var[bool], bool]] = None,
|
||||||
direction: Optional[
|
direction: Optional[
|
||||||
Union[
|
Union[
|
||||||
@ -114,8 +123,8 @@ class Stack(Flex):
|
|||||||
|
|
||||||
Args:
|
Args:
|
||||||
*children: The children of the stack.
|
*children: The children of the stack.
|
||||||
spacing: The spacing between each stack item.
|
spacing: Gap between children: "0" - "9"
|
||||||
align: The alignment of the stack items.
|
align: Alignment of children along the main axis: "start" | "center" | "end" | "baseline" | "stretch"
|
||||||
as_child: Change the default rendered element for the one passed as a child, merging their props and behavior.
|
as_child: Change the default rendered element for the one passed as a child, merging their props and behavior.
|
||||||
direction: How child items are layed out: "row" | "column" | "row-reverse" | "column-reverse"
|
direction: How child items are layed out: "row" | "column" | "row-reverse" | "column-reverse"
|
||||||
justify: Alignment of children along the cross axis: "start" | "center" | "end" | "between"
|
justify: Alignment of children along the cross axis: "start" | "center" | "end" | "between"
|
||||||
@ -155,14 +164,24 @@ class VStack(Stack):
|
|||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
cls,
|
cls,
|
||||||
*children,
|
*children,
|
||||||
spacing: Optional[LiteralSpacing] = "3",
|
|
||||||
align: Optional[LiteralAlign] = "start",
|
|
||||||
direction: Optional[
|
direction: Optional[
|
||||||
Union[
|
Union[
|
||||||
Literal["column", "column-reverse", "row", "row-reverse"],
|
Literal["column", "column-reverse", "row", "row-reverse"],
|
||||||
Var[Literal["column", "column-reverse", "row", "row-reverse"]],
|
Var[Literal["column", "column-reverse", "row", "row-reverse"]],
|
||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
|
spacing: Optional[
|
||||||
|
Union[
|
||||||
|
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
||||||
|
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
align: Optional[
|
||||||
|
Union[
|
||||||
|
Literal["baseline", "center", "end", "start", "stretch"],
|
||||||
|
Var[Literal["baseline", "center", "end", "start", "stretch"]],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
as_child: Optional[Union[Var[bool], bool]] = None,
|
as_child: Optional[Union[Var[bool], bool]] = None,
|
||||||
justify: Optional[
|
justify: Optional[
|
||||||
Union[
|
Union[
|
||||||
@ -239,9 +258,9 @@ class VStack(Stack):
|
|||||||
|
|
||||||
Args:
|
Args:
|
||||||
*children: The children of the stack.
|
*children: The children of the stack.
|
||||||
spacing: The spacing between each stack item.
|
|
||||||
align: The alignment of the stack items.
|
|
||||||
direction: How child items are layed out: "row" | "column" | "row-reverse" | "column-reverse"
|
direction: How child items are layed out: "row" | "column" | "row-reverse" | "column-reverse"
|
||||||
|
spacing: Gap between children: "0" - "9"
|
||||||
|
align: Alignment of children along the main axis: "start" | "center" | "end" | "baseline" | "stretch"
|
||||||
as_child: Change the default rendered element for the one passed as a child, merging their props and behavior.
|
as_child: Change the default rendered element for the one passed as a child, merging their props and behavior.
|
||||||
justify: Alignment of children along the cross axis: "start" | "center" | "end" | "between"
|
justify: Alignment of children along the cross axis: "start" | "center" | "end" | "between"
|
||||||
wrap: Whether children should wrap when they reach the end of their container: "nowrap" | "wrap" | "wrap-reverse"
|
wrap: Whether children should wrap when they reach the end of their container: "nowrap" | "wrap" | "wrap-reverse"
|
||||||
@ -280,14 +299,24 @@ class HStack(Stack):
|
|||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
cls,
|
cls,
|
||||||
*children,
|
*children,
|
||||||
spacing: Optional[LiteralSpacing] = "3",
|
|
||||||
align: Optional[LiteralAlign] = "start",
|
|
||||||
direction: Optional[
|
direction: Optional[
|
||||||
Union[
|
Union[
|
||||||
Literal["column", "column-reverse", "row", "row-reverse"],
|
Literal["column", "column-reverse", "row", "row-reverse"],
|
||||||
Var[Literal["column", "column-reverse", "row", "row-reverse"]],
|
Var[Literal["column", "column-reverse", "row", "row-reverse"]],
|
||||||
]
|
]
|
||||||
] = None,
|
] = None,
|
||||||
|
spacing: Optional[
|
||||||
|
Union[
|
||||||
|
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
||||||
|
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
|
align: Optional[
|
||||||
|
Union[
|
||||||
|
Literal["baseline", "center", "end", "start", "stretch"],
|
||||||
|
Var[Literal["baseline", "center", "end", "start", "stretch"]],
|
||||||
|
]
|
||||||
|
] = None,
|
||||||
as_child: Optional[Union[Var[bool], bool]] = None,
|
as_child: Optional[Union[Var[bool], bool]] = None,
|
||||||
justify: Optional[
|
justify: Optional[
|
||||||
Union[
|
Union[
|
||||||
@ -364,9 +393,9 @@ class HStack(Stack):
|
|||||||
|
|
||||||
Args:
|
Args:
|
||||||
*children: The children of the stack.
|
*children: The children of the stack.
|
||||||
spacing: The spacing between each stack item.
|
|
||||||
align: The alignment of the stack items.
|
|
||||||
direction: How child items are layed out: "row" | "column" | "row-reverse" | "column-reverse"
|
direction: How child items are layed out: "row" | "column" | "row-reverse" | "column-reverse"
|
||||||
|
spacing: Gap between children: "0" - "9"
|
||||||
|
align: Alignment of children along the main axis: "start" | "center" | "end" | "baseline" | "stretch"
|
||||||
as_child: Change the default rendered element for the one passed as a child, merging their props and behavior.
|
as_child: Change the default rendered element for the one passed as a child, merging their props and behavior.
|
||||||
justify: Alignment of children along the cross axis: "start" | "center" | "end" | "between"
|
justify: Alignment of children along the cross axis: "start" | "center" | "end" | "between"
|
||||||
wrap: Whether children should wrap when they reach the end of their container: "nowrap" | "wrap" | "wrap-reverse"
|
wrap: Whether children should wrap when they reach the end of their container: "nowrap" | "wrap" | "wrap-reverse"
|
||||||
|
Loading…
Reference in New Issue
Block a user