Toast
Provider
To use the toast
module, you need to set up the ToastProvider
first. Simply place it within the ThemeProvider
– its position doesn't matter, and it will function as expected.
vue
<script setup>
import { ThemeProvider, ToastProvider } from '@typlog/ui'
</script>
<template>
<ThemeProvider>
<ToastProvider />
</ThemeProvider>
</template>
Position
You can customize the position of toast messages using the position
prop on ToastProvider
. By default, toasts appear in the bottom-right corner.
Size
You can customize the size of toast messages using one of the three available size
options.