heading.py 389 B

12345678910111213
  1. """A heading component."""
  2. from pynecone.components.libs.chakra import ChakraComponent
  3. from pynecone.var import Var
  4. class Heading(ChakraComponent):
  5. """Heading composes Box so you can use all the style props and add responsive styles as well. It renders an h2 tag by default."""
  6. tag = "Heading"
  7. # "4xl" | "3xl" | "2xl" | "xl" | "lg" | "md" | "sm" | "xs"
  8. size: Var[str]