Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

directivue

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

directivue

Lightweight and Optimized Vue Directives for your Vue projects

  • 0.1.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

directivue

Lightweight and Optimized Vue Directives for your Vue projects

Available Directives

  • AutoFocus : Auto focus an element when inserted in the DOM (Safari support)
  • ClickOutside : Trigger a given function when clicking outside element
  • Ripple : Trigger a ripple effect when clicking/touching element (Mobile support)

Live Demo : https://directivue.netlify.app

Installation

yarn add directivue
# OR
npm install directivue

Usage

import Vue from 'vue'
import { ClickOutside, Ripple, /* ... */ } from 'directivue'

Vue.directive('clickOutside', ClickOutside)
Vue.directive('ripple', Ripple)
// ...

Directives are then accessible in your Vue templates as v-click-outside, v-ripple and so on.

Nuxt.js

directivue needs to be transpiled by Nuxt.js to get benefits of tree-shaking (only the directives you choose will be in your final bundle) :

// nuxt.config.js
export default {
  build: {
    transpile: ['directivue']
  }
}

Keywords

FAQs

Package last updated on 10 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc