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

Definition

The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

API

Properties

Every property declared by this interface, with its type, optionality and default.

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.

Ecosystem

Used by

Components and composables that extend or consume this interface.

Usage

Examples

Ready-to-paste code snippets using this interface.

Button acting as a router link

html