Module Configuration

Configure Nuxt Notify globally in your nuxt.config.ts to set default behavior for all toasts.

Configuration

Add the notify key to your Nuxt config:

nuxt.config.ts
export default defineNuxtConfig({
  modules: ["nuxt-notify"],

  notify: {
    position: "top-right",
    duration: 5000,
    maxToasts: 5,
    theme: "light",
    showIcon: true,
    showProgress: false,
  },
});

Configuration Options

position

Type: 'top-right' | 'top-left' | 'top-center' | 'bottom-right' | 'bottom-left' | 'bottom-center'
Default: 'top-right'

Default position for all toasts.

nuxt.config.ts
export default defineNuxtConfig({
  notify: {
    position: "bottom-right",
  },
});

duration

Type: number
Default: 5000

Default duration in milliseconds for all toasts.

nuxt.config.ts
export default defineNuxtConfig({
  notify: {
    duration: 7000, // 7 seconds
  },
});