flex.py 843 B

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