0.0.1 • Published 9 months ago

vue-bootstrap-toast-notification v0.0.1

Weekly downloads
-
License
-
Repository
github
Last release
9 months ago

Vue Bootstrap Toast Notification

Simple toast notifications for Vue3 & Bootstrap5 project

Installation

npm install vue-bootstrap-toast-notification

Usage with Composition API

<template>
  <Toast :notification="notification"></Toast>
  <button @click.prevent="notify">NOTIFY</button>
</template>

<script setup lang="ts">
import { ref } from 'vue'
import { Toast } from 'vue-bootstrap-toast-notification'

const notification = ref({})

function notify() {
  notification.value = {
    type: 'success',
    message: 'Success!'
  }
}
</script>

<style>
@import 'bootstrap/scss/bootstrap.scss';
</style>
0.0.1

9 months ago