container.py 364 B

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