Making Flowbite JS functionnal on every Nuxt 3 page / component

Flowbite provides a documentation regarding its installation on a Nuxt project. To avoid adding the init logic everywhere (components, page...) here a snippet I found on StackOverflow to add it once on a ./plugins/flowbite.client.ts file.

import { initFlowbite } from "flowbite";

export default defineNuxtPlugin((nuxtApp) => {
  nuxtApp.vueApp.mixin({
    mounted() {
      initFlowbite();
    },
  });
});