reflex/pynecone/components/navigation/nextlink.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

19 lines
483 B
Python

"""A link component."""
from pynecone.components.component import Component
from pynecone.var import Var
class NextLink(Component):
"""Links are accessible elements used primarily for navigation. This component is styled to resemble a hyperlink and semantically renders an <a>."""
library = "next/link"
tag = "NextLink"
# The page to link to.
href: Var[str]
# Whether to pass the href prop to the child.
pass_href: Var[bool] = True # type: ignore