blockquote.py 920 B

12345678910111213141516171819202122232425262728293031323334
  1. """Components for rendering heading.
  2. https://www.radix-ui.com/themes/docs/theme/typography
  3. """
  4. from __future__ import annotations
  5. from reflex.components.core.breakpoints import Responsive
  6. from reflex.components.el import elements
  7. from reflex.vars.base import Var
  8. from ..base import LiteralAccentColor, RadixThemesComponent
  9. from .base import LiteralTextSize, LiteralTextWeight
  10. class Blockquote(elements.Blockquote, RadixThemesComponent):
  11. """A block level extended quotation."""
  12. tag = "Blockquote"
  13. # Text size: "1" - "9"
  14. size: Var[Responsive[LiteralTextSize]]
  15. # Thickness of text: "light" | "regular" | "medium" | "bold"
  16. weight: Var[Responsive[LiteralTextWeight]]
  17. # Overrides the accent color inherited from the Theme.
  18. color_scheme: Var[LiteralAccentColor]
  19. # Whether to render the text with higher contrast color
  20. high_contrast: Var[bool]
  21. blockquote = Blockquote.create