Files
oa/documentation/plugins/notyf/notyf-error-documentation.md
2025-05-24 01:49:48 +09:00

28 lines
570 B
Markdown

### Error toast
Vuero is integrated with `Notyf`, a dead simple vanilla javascript
toasting library. You can check the plugin documentation on
<a href="https://github.com/caroso1222/notyf" target="_blank">Github</a>.
The success toast is one the 2 notyf default toasts.
<!--code-->
```vue
<script setup lang="ts">
import { Notyf } from 'notyf'
const notyf = new Notyf()
const errorToast = () => {
notyf.error('Looks like something went wrong')
}
</script>
<template>
<VButton bold @click="errorToast">
Error Toast
</VButton>
</template>
```
<!--/code-->