feat(useToast): add clear method

This commit is contained in:
Benjamin Canac
2024-04-22 17:15:28 +02:00
parent 814437255e
commit 89ff6b6702

View File

@@ -50,10 +50,15 @@ export function useToast() {
}, 200)
}
function clear() {
toasts.value = []
}
return {
toasts,
add,
update,
remove
remove,
clear
}
}