reflex/pynecone/components/layout/flex.py
Nikhil Rao 7ec4b3f8fe
Improve component docs (#35)
* Update component docstrings
* Remove transitions libs
* Add span component
* Add lock files
2022-12-07 15:04:49 -08:00

32 lines
655 B
Python

"""A reflexive container component."""
from pynecone.components.libs.chakra import ChakraComponent
from pynecone.var import Var
class Flex(ChakraComponent):
"""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[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[str]
# Shorthand for flexShrink style prop
shrink: Var[str]