1.0.3 • Published 6 years ago

v-honk v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

šŸ¦† V-Honk

Introducing a little chaos to Vue.js.

v-honk is a custom directive for Vue that adds a delightful little "honk" to anything.

Installation

  npm install v-honk

Using it in a component

  <template>
    <div>
      <a href="https://honkify.netlify.com" v-honk>This will go to Honkify.js.</a>
      <a href="https://honkify.netlify.com" v-honk:block>This won't let you through.</a>
      <p v-honk>This won't go anywhere.</p>
    </div>
  </template>

  <script>
  import honk from "v-honk";

  export default {
    directives: {
      honk
    }
  };
  </script>

If the target is an anchor tag, v-honk simply honks and lets the user through after a timeout. However, as geese do, sometimes they want to block your path. Adding an argument of block will stop a link from working while still honking at them.

šŸ’š Inspired by the anarchy of Honkify.js and Jason Lengstof.

Plans for v-honk:

  • [] Create a global property
  • [] Make sure target is an actual link
  • [] World dominiation
1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago