36 lines
799 B
Python
36 lines
799 B
Python
"""Components for rendering heading.
|
|
|
|
https://www.radix-ui.com/themes/docs/theme/typography
|
|
"""
|
|
from __future__ import annotations
|
|
|
|
from reflex import el
|
|
from reflex.vars import Var
|
|
|
|
from ..base import (
|
|
LiteralAccentColor,
|
|
RadixThemesComponent,
|
|
)
|
|
from .base import (
|
|
LiteralTextSize,
|
|
LiteralTextWeight,
|
|
)
|
|
|
|
|
|
class Blockquote(el.Blockquote, RadixThemesComponent):
|
|
"""A block level extended quotation."""
|
|
|
|
tag = "Blockquote"
|
|
|
|
# Text size: "1" - "9"
|
|
size: Var[LiteralTextSize]
|
|
|
|
# Thickness of text: "light" | "regular" | "medium" | "bold"
|
|
weight: Var[LiteralTextWeight]
|
|
|
|
# Overrides the accent color inherited from the Theme.
|
|
color_scheme: Var[LiteralAccentColor]
|
|
|
|
# Whether to render the text with higher contrast color
|
|
high_contrast: Var[bool]
|