Skip to main content

useHref

useHref(to: To,__namedParameters: ): string

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.

Properties

(Mandatory properties are in bold)
PropertiesTypeDescription
toTo
Additional properties for advanced use cases
PropertiesTypeDescription
relativeRelativeRoutingType