useHref

external fun useHref(to: To, options: UseHrefOptions = definedExternally): String(source)

Returns the full href for the given "to" value. This is useful for building custom links that are also accessible and preserve right-click behavior.

See also

https

://reactrouter.com/v6/hooks/use-href