Skip to content

Global Configuration Nuxt3 Vue3 #1001

@JokerMartini

Description

@JokerMartini

Where do i define a global configuration file when using the Nuxt3 setup (module)? Does it go somewhere in the nuxt.config.js file? In my case i want to place the tooltips at the bottom. I wasn't really clear on how or where to do this based on the docs.

export const config: FloatingVueConfig = {
  // Themes
  themes: {
    tooltip: {
      // Default tooltip placement relative to target element
      placement: 'bottom',
      // Delay (ms)
      delay: {
        show: 500,
        hide: 0,
      },
    },
  },
}

My nuxt.config.js

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  devtools: { enabled: true },
  modules: ["@nuxtjs/tailwindcss", "@pinia/nuxt", "floating-vue/nuxt"],
  css: ["@/assets/css/tailwind.css"],
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions