section.py 481 B

1234567891011121314151617181920
  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 RadixThemesComponent
  7. LiteralSectionSize = Literal["1", "2", "3"]
  8. class Section(el.Section, RadixThemesComponent):
  9. """Denotes a section of page content."""
  10. tag = "Section"
  11. # The size of the section: "1" - "3" (default "2")
  12. size: Var[LiteralSectionSize] = Var.create_safe("2")