34 lines
725 B
Python
34 lines
725 B
Python
"""A reflexive container component."""
|
|
|
|
from typing import List, Union
|
|
|
|
from reflex.components.libs.chakra import ChakraComponent
|
|
from reflex.vars import Var
|
|
|
|
|
|
class Flex(ChakraComponent):
|
|
"""A reflexive container component."""
|
|
|
|
tag: str = "Flex"
|
|
|
|
# How to align items in the flex.
|
|
align: Var[str]
|
|
|
|
# Shorthand for flexBasis style prop
|
|
basis: Var[str]
|
|
|
|
# Shorthand for flexDirection style prop
|
|
direction: Var[Union[str, List[str]]]
|
|
|
|
# Shorthand for flexGrow style prop
|
|
grow: Var[str]
|
|
|
|
# The way to justify the items.
|
|
justify: Var[str]
|
|
|
|
# Shorthand for flexWrap style prop
|
|
wrap: Var[Union[str, List[str]]]
|
|
|
|
# Shorthand for flexShrink style prop
|
|
shrink: Var[str]
|