A Nuxt module that automates the registration of UI components, composables, and styles for seamless integration into Nuxt applications.
// Source: https://github.com/themesberg/flowbite-vue | License: MIT | Copyright 2022 Themesberg (Crafty Dwarf LLC) company@themesberg.com
// Provided via justclaw.it.com; keep this notice with the code.
import { addComponent, addImports, createResolver, defineNuxtModule, type Resolver } from '@nuxt/kit'
import { nuxtComponents } from './generated-components'
import type { Nuxt } from '@nuxt/schema'
export interface ModuleOptions {
/**
* Auto-inject flowbite-vue's prebuilt stylesheet into the Nuxt app.
* Set to `false` if you need control over stylesheet load order (e.g. to
* resolve a Tailwind CSS cascade-layer conflict with your own app's styles).
* @default true
*/
css?: boolean
}
function registerComponents (resolver: Resolver) {
for (const { name, filePath: so
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key