reflex/reflex/components/next/link.py
Thomas Brandého 42e6dfa40d
enable PGH, bump pyright and fix all #type: ignore (#4699)
* enable PGH, bump pyright and fix  all #type: ignore

* relock poetry file

* ignore incompatible override

* fix varop tests

* ignore missing imports

* fix

* fix stuff

* fix tests

* rechange tests

* relock with poetry 2.0
2025-01-28 13:11:05 -08:00

21 lines
504 B
Python

"""A link component."""
from reflex.components.component import Component
from reflex.vars.base 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"
is_default = True
# The page to link to.
href: Var[str]
# Whether to pass the href prop to the child.
pass_href: Var[bool] = Var.create(True)