0.0.1-alpha.2 • Published 7 months ago

vue-app-link v0.0.1-alpha.2

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

npm GitHub package version NPM Downloads

Install

yarn add vue-app-link

Import

import { createApp } from 'vue';
import AppLink from 'vue-app-link';

const app = createApp(App);

app.component('AppLink', AppLink);
app.mount('#app');

Usage

<AppLink to="/">Home</AppLink>
<AppLink
    to="/"
    :throttle="1000"
    :changed="500"
>
  Home
</AppLink>

Settings

OptionTypeDefaultDescription
toString, ObjectSpecifies the path to follow when a link is clicked.
throttleNumberSets the duration of the presence of the .link-throttled html class on a clicked link. This class can be used in conjunction with the pointer-events CSS property to prevent multiple clicks.
changedNumberAs this component replaces the <a href="...> hyperlink with <span> on the target page, a delay may be required to allow this change to affect the animation call.

License

vue-app-link is released under MIT license

0.0.1-alpha.2

7 months ago

0.0.1-alpha.1

7 months ago