modbender / nuxt-snackbar

A Nuxt Snackbar/Toast Implementation independent of CSS framework
https://nuxt.com/modules/snackbar
MIT License
26 stars 6 forks source link

Documentation for config example #1

Closed craigrileyuk closed 1 year ago

craigrileyuk commented 1 year ago
export default defineNuxtConfig({
  modules: [
    'nuxt-snackbar',
    snackbar: {
      bottom: true,
      right: true,
      duration: 5000
    },
  ]
})

Should be:

export default defineNuxtConfig({
  modules: ['nuxt-snackbar'],
  snackbar: {
    bottom: true,
    right: true,
    duration: 5000
  }
})

snackbar options go at the root level.

modbender commented 1 year ago

Done! Thank you for pointing that out.