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