ILinkProps

interface
Navigation

Navigation props shared by any component that can act as a link — resolves to an anchor when href or to is set, button otherwise.

TypeScript

Définition

La définition TypeScript de l'interface telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.

typescript

API

Propriétés

Chaque propriété déclarée par cette interface, avec son type, son caractère optionnel et sa valeur par défaut.

href
string
Plain URL for external links. When set, renders an <a> element.
replace
boolean
When true, navigates via router.replace() instead of router.push().
to
RouteLocationRaw
Vue Router destination — a string path, location object or named route.
exact
boolean
Passes the `exact` flag to vue-router for active-link matching.

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

Extraits de code prêts à coller utilisant cette interface.

Button acting as a router link

html