Skip to content
This repository has been archived by the owner on Jun 23, 2020. It is now read-only.

zhiquan-yu/vue-function-snackbar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vue-function-snackbar

A snackbar component based on vue-function-api

Usage

<template>
  <div class="your-app>
    <Snackbar :show="showSnackbar" @hide="handleHide" @click="handleClick">Hello World</Snackbar>
  </div>
</template>

<script>
import { value } from 'vue-function-api'
import Snackbar from 'vue-function-snackbar'

export default {
  name: 'YourApp',

  setup() {
    const showSnackbar = value(false)

    return {
      showSnackbar,

      handleHide() {

      },

      handleClick() {

      },
    }
  },

  components: {
    Snackbar,
  },
}
</script>

<style scoped>
  .your-app {
    /* You can custom the z-index of vue-snackbar by CSS variable, default is 100 */
    --vue-snackbar-z-index: 1000;
  }
</style>

About

A snackbar component based on vue-function-api

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published