container.py 541 B

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