@adminlte/nuxt

Nuxt module for @adminlte/vue — auto-imports, CSS, Bootstrap init, and SSR-safe theming
1,455
Install
npm install @adminlte/nuxt
Latest Version:0.8.0
Vue:3
License:MIT
Last Updated:Oct 1, 2026
Links: npm
Maintainer: silkalns

@adminlte/nuxt

The Nuxt module for adminlte-vue. Auto-registers all components, auto-imports the composables, injects the CSS, initializes Bootstrap's JS client-side, and sets up SSR-safe dark mode (no flash).

Install

npm i @adminlte/nuxt @adminlte/vue bootstrap
// nuxt.config.ts
export default defineNuxtConfig({
  modules: ['@adminlte/nuxt'],
  adminlte: {
    defaults: {
      sidebarTheme: 'dark',
      fixedHeader: true,
      fixedSidebar: true,
      initialColorMode: 'auto',
      enableSidebarPersistence: false,
    },
  },
  // icons + sidebar scrollbar CSS the library doesn't bundle
  css: ['bootstrap-icons/font/bootstrap-icons.css', 'overlayscrollbars/overlayscrollbars.css'],
})

Components (<LteDashboardLayout>, <LteCard>, …) and composables (useSidebar, useColorMode, …) are then available everywhere without imports. Read the layout defaults at runtime with useAdminlteConfig().

Options

Option Default Description
prefix 'Lte' Component name prefix used for auto-registration.
components true Auto-register all components globally.
composables true Auto-import the composables.
css true Inject adminlte-vue/css.
bootstrap true Load Bootstrap's JS bundle client-side.
themeScript true Inject a blocking head script that sets data-bs-theme before first paint (avoids FOUC).
defaults see config Layout/theme defaults, surfaced via useAdminlteConfig().

How SSR-safe theming works

A small blocking inline <head> script reads localStorage['lte-theme'] (falling back to the OS preference) and sets data-bs-theme on <html> before the page paints — so dark-mode users never see a white flash. The useColorMode composable owns reactive updates after hydration.

MIT licensed.

Related Packages

@adminlte/vue

AdminLTE 4 Vue 3 component library

1,837 8
nuxt-panes

Retained-page tabs for Nuxt. Real history, mounted panes, Chrome-like strip.

261 0
nuxt-observe

Self-hosted observability + service-registry dashboard module for Nuxt

2,027
@privyid/nuxt-csrf

Module CSRF for NUXT

26,088 9
mixpanel-nuxt

Mixpanel module for Nuxt

19,992 7

Version History

Version Released Vue License
0.8.0 ^3.0 MIT
0.7.0 ^3.0 MIT
0.6.0 ^3.0 MIT
0.5.0 ^3.0 MIT
0.4.0 ^3.0 MIT