Skip to content

bdmehedi/vue-directives

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

vue-directives

This repository contains custom Vue.js directives. Below are the instructions on how to use the v-tooltip directive.

v-tooltip Directive

The v-tooltip directive can be used to add tooltips to your elements.

Usage

  1. Install dependencies: Make sure you have Vue.js installed in your project.

    npm install vue
  2. Add the directive to your Vue app: Import the tooltip directive and register it in your Vue app.

    // app.vue
    import { createApp } from 'vue';
    import tooltip from "./tooltip.js";
    
    const app = createApp(App);
    app.directive('tooltip', tooltip);
    app.mount('#app');
  3. Use the directive in your components: You can now use the v-tooltip directive in your Vue components.

    <template>
      <div v-tooltip="'This is a tooltip'">Hover over me</div>
    </template>

About

This repository contains custom Vue.js directives

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published