1
0

section.py 624 B

12345678910111213141516171819202122232425
  1. """Declarative layout and common spacing props."""
  2. from __future__ import annotations
  3. from typing import Literal
  4. from reflex.components.core.breakpoints import Responsive
  5. from reflex.components.el import elements
  6. from reflex.vars.base import LiteralVar, Var
  7. from ..base import RadixThemesComponent
  8. LiteralSectionSize = Literal["1", "2", "3"]
  9. class Section(elements.Section, RadixThemesComponent):
  10. """Denotes a section of page content."""
  11. tag = "Section"
  12. # The size of the section: "1" - "3" (default "2")
  13. size: Var[Responsive[LiteralSectionSize]] = LiteralVar.create("2")
  14. section = Section.create