reflex/pynecone/components/navigation/linkoverlay.py
Nikhil Rao 7ec4b3f8fe
Improve component docs (#35)
* Update component docstrings
* Remove transitions libs
* Add span component
* Add lock files
2022-12-07 15:04:49 -08:00

23 lines
529 B
Python

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