New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vue-swipe-button

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-swipe-button

Vue Swipe Button

  • 0.1.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
12
decreased by-40%
Maintainers
1
Weekly downloads
 
Created
Source

vue-swipe-button

Demo

https://tran2.github.io/vue-swipe-button/

Install

npm install --save vue-swipe-button

Usage

Import SwipeButton and its css.

import SwipeButton from 'vue-swipe-button'
import 'vue-swipe-button/dist/swipeButton.css'

Sample usage:

<template>
  <div id="app">
    <SwipeButton
      ref="swipeButton"
      class="swipe-button"
      @actionConfirmed="onActionConfirmed"
    />
  </div>
</template>

<script>
import SwipeButton from 'vue-swipe-button'
import 'vue-swipe-button/dist/swipeButton.css'

export default {
  name: 'app',
  components: {
    SwipeButton
  },
  methods: {
    onActionConfirmed() {
      setTimeout(() => {
        this.$refs.swipeButton.reset();
      }, 1000);
    },
  },

}
</script>

<style>
.swipe-button {
  width: 500px;
  background-color: #17255A;
  border: 1px solid #17255A;
}
</style>

Project setup for development

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build:component

Lints and fixes files

npm run lint

Run your unit tests

npm run test:unit

Build docs

npm run build:docs
in docs/index.html
make sure the paths don't have '/' at the beginning
ex: /js/app.js should be js/app.js

FAQs

Package last updated on 04 May 2021

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