The URL to navigate to, can be a string or a partial Path.
Options
OptionaldefaultShouldRevalidate?: booleanSpecify the default revalidation behavior for the navigation. When not specified, loaders revalidate according to the router's standard revalidation behavior.
Optionalmask?: ToMasked location to display in the browser instead
of the router location. Defaults to undefined.
OptionalpreventScrollReset?: booleanWhether to prevent the scroll position from
being reset to the top of the viewport on completion of the navigation when
using the ScrollRestoration component. Defaults to false.
Optionalrelative?: RelativeRoutingTypeThe relative routing type
to use for the link. Defaults to "route".
Optionalreplace?: booleanWhether to replace the current History
entry instead of pushing a new one. Defaults to false.
Optionalstate?: anyThe state to add to the History
entry for this navigation. Defaults to undefined.
Optionaltarget?: HTMLAttributeAnchorTargetThe target attribute for the link. Defaults to undefined.
OptionaluseTransitions?: booleanWraps the navigation in
React.startTransition
for concurrent rendering. Defaults to false.
Whether to prevent the scroll position from
being reset to the top of the viewport on completion of the navigation when
using the ScrollRestoration component. Defaults to false.
The RelativeRoutingType | relative routing type
to use for the link. Defaults to "route".
Whether to replace the current History
entry instead of pushing a new one. Defaults to false.
The state to add to the History
entry for this navigation. Defaults to undefined.
The target attribute for the link. Defaults to undefined.
Deprecated. Use React's
<ViewTransition> component
instead. See the migration guide.
Specify the default revalidation behavior for the navigation. When not specified, loaders revalidate according to the router's standard revalidation behavior.
Masked location to display in the browser instead
of the router location. Defaults to undefined.
Wraps the navigation in
React.startTransition
for concurrent rendering. Defaults to false.
A click handler function that can be used in a custom Link component.
Handles the click behavior for router
<Link>components.This is useful if you need to create custom<Link>components with the same click behavior we use in our exported<Link>.