Skip to content

Commit

Permalink
docs: how to create a toast notification
Browse files Browse the repository at this point in the history
  • Loading branch information
DanericNetwork committed Dec 20, 2023
1 parent a52b548 commit 10749b7
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions docs/toast_notification.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Create a toast notification

we're using [vue-toastification](https://github.com/Maronato/vue-toastification) to create toast notifications.

``component.vue``
```html
<template>
<div>
<button @click="openToast">Open Toast</button>
</div>
</template>

<script>
import { useToast } from "vue-toastification";
export default {
methods: {
openToast() {
const toast = useToast();
toast.success("Hello World!");
},
},
};
</script>

```

0 comments on commit 10749b7

Please sign in to comment.