linkoverlay.py 529 B

12345678910111213141516171819202122
  1. """Link overlay components."""
  2. from pynecone.components.libs.chakra import ChakraComponent
  3. from pynecone.var import Var
  4. class LinkOverlay(ChakraComponent):
  5. """Wraps child component in a link."""
  6. tag = "LinkOverlay"
  7. # If true, the link will open in new tab
  8. is_external: Var[bool]
  9. # Href of the link overlay.
  10. href: Var[str]
  11. class LinkBox(ChakraComponent):
  12. """The LinkBox lifts any nested links to the top using z-index to ensure proper keyboard navigation between links."""
  13. tag = "LinkBox"