text.py 305 B

1234567891011121314
  1. """A text component."""
  2. from __future__ import annotations
  3. from pynecone.components.libs.chakra import ChakraComponent
  4. from pynecone.var import Var
  5. class Text(ChakraComponent):
  6. """Render a paragraph of text."""
  7. tag = "Text"
  8. # Override the tag. The default tag is `<p>`.
  9. as_: Var[str]