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/hooks/use-href