useDuxtToast()
Notifications, wrapped so no component imports the library.
Signature
const notify = useDuxtToast();
notify.success(t('duxt.code.copiedToast'));
Returns
{ success, info, warning, error, loading, dismiss }.
Notes
The wrapper is the seam: a consumer that wants a different notification system replaces this one composable instead of every call site, and the layer own components keep working.
Was this page helpful?