Skip to content
On this page

useToast

Vue composable for handling toaster plugin in your components

WARNING

You must install toaster plugin before use it

TIP

More info about toaster plugin in its documentation

Usage

vue
<script lang="ts" setup>
  import { useToast } from '@zadigetvoltaire/ui'

  const toast = useToast()

  toast.info('info message')
  toast.success('success message')
  toast.warning('warning message')
  toast.error('error message')
</script>

Documentation

Follow this link