@ngbplatform/ui

Reusable Vue UI building blocks for NGB Platform vertical applications.
1,053 14
Install
npm install @ngbplatform/ui
Latest Version:3.2.0
Vue:3
License:Apache-2.0
Last Updated:Oct 24, 2026
Links: GitHub  ·  npm
Maintainer: perkovsky

@ngbplatform/ui

Reusable Vue UI building blocks for NGB Platform vertical applications.

Install

Replace PLATFORM_VERSION with the exact published NGB version used by your backend:

npm install --save-exact @ngbplatform/ui@PLATFORM_VERSION

Applications must provide the Vue runtime peers:

npm install vue vue-router pinia keycloak-js

Usage

import { NgbSiteShell } from '@ngbplatform/ui'
import '@ngbplatform/ui/styles'

For Vite-hosted applications, publish NGB-owned public assets through the package plugin:

import { ngbUiFrameworkPublicAssetsPlugin } from '@ngbplatform/ui/vite-public-assets'

export default defineConfig({
  plugins: [vue(), ngbUiFrameworkPublicAssetsPlugin()],
  optimizeDeps: {
    exclude: ['@ngbplatform/ui'],
  },
})

The package ships TypeScript modules and Vue SFCs. Exclude it from Vite dependency pre-bundling so application configuration and components use the same module instances. Apply this exclusion to separate Vitest browser configurations as well, and do not add the package to optimizeDeps.include.

Tailwind

Use the public preset with Tailwind 3.4. Keep PostCSS configuration in the consuming application. Tailwind 4 is outside the supported toolchain.

// tailwind.config.js
import ngbPreset from '@ngbplatform/ui/tailwind-preset'

export default {
  presets: [ngbPreset],
  content: [
    './index.html',
    './src/**/*.{vue,js,ts,jsx,tsx}',
    './node_modules/@ngbplatform/ui/src/**/*.{vue,js,ts,jsx,tsx}',
  ],
}
// postcss.config.js
export default {
  plugins: {
    tailwindcss: {},
    autoprefixer: {},
  },
}

The preset exports the same ngbTailwindBaseConfig as its default export and contains design-token mappings, dark-mode configuration and shared theme values. It does not inject content paths or load repository files. The generated starter pins a tested Vite 7 / PostCSS 8 / Vue 3.5 toolchain in its lockfile.

Supported package entry points are the root, contracts, editor, layout, lazy, navigation, work-center, styles, vite-public-assets and tailwind-preset. Other source paths are implementation details.

License

Apache-2.0.

Related Packages

beev-ui

A ui framework based on antdv3

367
yd-admin

基于 Vue 3 的后台管理框架通用组件库 - 轻量、高效、主题可定制

9,781
@poupe/nuxt

Nuxt module for integrating Poupe UI framework with theme customization and comp...

3,052 3
pohon-ui

A UI Library for Modern Web Apps, powered by Vue & UnoCSS.

10,084 0

Version History

Version Released Vue License
3.2.0 ^3.5.0 Apache-2.0
3.1.0 ^3.5.0 Apache-2.0
3.0.0 ^3.5.0 Apache-2.0
2.0.0 ^3.5.0 Apache-2.0
1.3.1 ^3.5.0 Apache-2.0