14 lines
363 B
Python
14 lines
363 B
Python
"""A flexbox container."""
|
|
|
|
from pynecone.components.libs.chakra import ChakraComponent
|
|
from pynecone.vars import Var
|
|
|
|
|
|
class Container(ChakraComponent):
|
|
"""A flexbox container that centers its children and sets a max width."""
|
|
|
|
tag = "Container"
|
|
|
|
# If true, container will center its children regardless of their width.
|
|
center_content: Var[bool]
|