Basic Usage
Learn how to create and customize toast notifications using Nuxt Notify.
Using the useToast() Composable
The useToast() composable is your main interface for creating toasts:
useToast
Toast Type Methods
Nuxt Notify provides convenient shorthand methods for common toast types.
Success Toast
success
Error Toast
error
Info Toast
info
Warning Toast
warning
Title Only
You can show toasts with just a title (no description):
title-only
Using the add() Method
For more control, use the add() method with a full options object:
add
Remove All Toasts
Clear all visible toasts programmatically:
clear
The clear() method is useful for cleaning up toasts when navigating between pages or during logout.
Multiple Toasts
Show multiple toasts in sequence:
multiple
Custom Duration
Control how long each toast stays visible:
duration
