container.py 376 B

12345678910111213
  1. """A flexbox container."""
  2. from pynecone.components.libs.chakra import ChakraComponent
  3. from pynecone.var import Var
  4. class Container(ChakraComponent):
  5. """Container composes Box so you can pass all Box related props in addition to this."""
  6. tag = "Container"
  7. # If true, container will center its children regardless of their width.
  8. center_content: Var[bool]