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)| Properties | Type | Description |
|---|---|---|
| to | To |
Additional properties for advanced use cases
| Properties | Type | Description |
|---|---|---|
| relative | RelativeRoutingType |