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.
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.
- hrefstring
- Plain URL for external links. When set, renders an <a> element.
- replaceboolean
- When true, navigates via router.replace() instead of router.push().
- toRouteLocationRaw
- Vue Router destination — a string path, location object or named route.
- exactboolean
- 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