JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 732
  • Score
    100M100P100Q131644F
  • License MIT

A vuejs snackbar componenty

Package Exports

  • vuejs-snackbar

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vuejs-snackbar) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

vuejs-snackbar

A Vuejs snackbar component. Used flex layout,

Installation

npm install vuejs-snackbar

Register the component

import Snackbar from 'vuejs-snackbar';

// Global register
Vue.component('snacbar', Snackbar);

// Local register
new Vue({
  component:{Snackbar}
})

Props

Name Type Description
baseSize String Validator: /\d(rem|px|em)$/, default: '100px'. Used to set size of snackbar
wrapClass String Default: ''. Used to set the wrap class of snackbar. When it Used, the prop 'baseSize' will be ignored, and you must rewrite all the style of snackbar
colors Object Default: "{open: '#333',info: '#3DBD7D',error: '#FA7377',warn: '#FF6600'}". Used to set the background color of snackbar with different type
holdTime Number Default: 3000. Used to set hold time of snackbar
multiple Boolean Default: true. Used to set if it show multiple snackbar or not