24 lines
555 B
Python
24 lines
555 B
Python
"""Declarative layout and common spacing props."""
|
|
from __future__ import annotations
|
|
|
|
from typing import Literal
|
|
|
|
from reflex.components.el import elements
|
|
from reflex.vars import Var
|
|
|
|
from ..base import RadixThemesComponent
|
|
|
|
LiteralSectionSize = Literal["1", "2", "3"]
|
|
|
|
|
|
class Section(elements.Section, RadixThemesComponent):
|
|
"""Denotes a section of page content."""
|
|
|
|
tag = "Section"
|
|
|
|
# The size of the section: "1" - "3" (default "2")
|
|
size: Var[LiteralSectionSize] = Var.create_safe("2", _var_is_string=True)
|
|
|
|
|
|
section = Section.create
|