docs(composables): update

This commit is contained in:
Benjamin Canac
2024-09-30 12:01:35 +02:00
parent aeccf30a92
commit c738bd9d53
5 changed files with 204 additions and 12 deletions

View File

@@ -13,7 +13,7 @@ const toast = useToast()
</script>
```
- The `useToast` composable uses Vue's `useState` to manage the toast state, ensuring reactivity across your application.
- The `useToast` composable uses Nuxt's `useState` to manage the toast state, ensuring reactivity across your application.
- A maximum of 5 toasts are displayed at a time. When adding a new toast that would exceed this limit, the oldest toast is automatically removed.
- When removing a toast, there's a 200ms delay before it's actually removed from the state, allowing for exit animations.