Quick Start
Get started with Nuxt Notify in just a few minutes!
Basic Configuration
Add basic configuration to your nuxt.config.ts:
nuxt.config.ts
Your First Toast
Use the useToast() composable in any component:
pages/index.vue
Toast Types
Nuxt Notify provides 4 built-in toast types.
Success Toast
success
Error Toast
error
Info Toast
info
Warning Toast
warning
Custom Toast
For more control, use the add() method:
custom
Configuration Options
Here are the main configuration options:
| Option | Type | Default | Description |
|---|---|---|---|
position | string | 'top-right' | Toast position on screen |
duration | number | 5000 | How long toast stays visible (ms) |
maxToasts | number | 5 | Maximum toasts on screen |
theme | string | 'light' | Theme: 'light', 'dark', or 'system' |
showIcon | boolean | true | Show/hide icons |
All global options can be overridden per toast. Learn more in the Configuration guide.
