reflex/reflex/components/chakra/layout/flex.py
Alek Petuskey 00a8054850
Individually Import Chakra Packages (#2405)
* Base lib switch

Co-authored-by: Alek Petuskey <alekpetuskey@aleks-mbp.lan>
2024-01-25 10:22:46 -08:00

34 lines
739 B
Python

"""A reflexive container component."""
from typing import List, Union
from reflex.components.chakra.layout.base import ChakraLayoutComponent
from reflex.vars import Var
class Flex(ChakraLayoutComponent):
"""A reflexive container component."""
tag = "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]