Skip to content

hmark/vue-bootstrap-toast-notification

Repository files navigation

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>

About

Simple Toast Notification Component for Bootstrap 5 + Vue 3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published