container.py 399 B

1234567891011121314
  1. """A flexbox container."""
  2. from typing import Optional
  3. from reflex.components.chakra import ChakraComponent
  4. from reflex.vars import Var
  5. class Container(ChakraComponent):
  6. """A flexbox container that centers its children and sets a max width."""
  7. tag = "Container"
  8. # If true, container will center its children regardless of their width.
  9. center_content: Optional[Var[bool]] = None