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

@signainfo/stoast

Package Overview
Dependencies
Maintainers
4
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@signainfo/stoast

### Installation

  • 0.6.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-50%
Maintainers
4
Weekly downloads
 
Created
Source

SToast component

Installation

npm i --save @signainfo/stoast

Usage

It can be installed globally using:

import Vue from 'vue'
import SToast from '@signainfo/stoast'
import '@signainfo/stoast/dist/stoast.css'
...

Vue.use(SToast)

...

or used on demand:

<script>
import SToast from '@signainfo/stoast'
export default {
  name: 'App',
  components: {
    's-toast': SToast
  },
  data() {
    ...
  }
}
</script>

and use inside the template tag:

<template>
  ...
  <s-toast v-model="toast.show" :color="toast.color" :message="toast.message" :time="toast.time" />
  ...
</template>

Props:

props: {
    value: {
      type: Boolean,
      required: true,
      default: ''
    },
    message: {
      type: String,
      required: true,
      default: ''
    },
    color: {
      type: String,
      required: false,
      default: 'success'
    },
    time: {
      type: Number,
      required: false,
      default: 2000
    }
}

Development

npm start // start the test app
npm run build // builds the component and publish to npm

Before building the component you need to advance the version using npm semver:

npm version patch // to patch version
npm version minor // to minor version
npm version major // to major version

FAQs

Package last updated on 05 Nov 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