mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-20 10:03:41 +09:00
first
This commit is contained in:
27
documentation/plugins/notyf/notyf-error-documentation.md
Normal file
27
documentation/plugins/notyf/notyf-error-documentation.md
Normal file
@@ -0,0 +1,27 @@
|
||||
### 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-->
|
||||
Reference in New Issue
Block a user