flex.py 655 B

12345678910111213141516171819202122232425262728293031
  1. """A reflexive container component."""
  2. from pynecone.components.libs.chakra import ChakraComponent
  3. from pynecone.var import Var
  4. class Flex(ChakraComponent):
  5. """A reflexive container component."""
  6. tag = "Flex"
  7. # How to align items in the flex.
  8. align: Var[str]
  9. # Shorthand for flexBasis style prop
  10. basis: Var[str]
  11. # Shorthand for flexDirection style prop
  12. direction: Var[str]
  13. # Shorthand for flexGrow style prop
  14. grow: Var[str]
  15. # The way to justify the items.
  16. justify: Var[str]
  17. # Shorthand for flexWrap style prop
  18. wrap: Var[str]
  19. # Shorthand for flexShrink style prop
  20. shrink: Var[str]