reflex/reflex/components/radix/themes/layout/container.py
2023-12-06 16:47:03 -08:00

24 lines
541 B
Python

"""Declarative layout and common spacing props."""
from __future__ import annotations
from typing import Literal
from reflex import el
from reflex.vars import Var
from .base import LayoutComponent
LiteralContainerSize = Literal["1", "2", "3", "4"]
class Container(el.Div, LayoutComponent):
"""Constrains the maximum width of page content.
See https://www.radix-ui.com/themes/docs/components/container
"""
tag = "Container"
# The size of the container: "1" - "4" (default "4")
size: Var[LiteralContainerSize]