Skip to content

Getting started ​

Add Numior UI to a Vue 3.5+ app built with Vite. Nuxt takes different steps, covered in SSR and Nuxt.

Installation ​

  1. Install the package ​

    sh
    pnpm add @numior/kit

    The package holds every component and module, and a module such as @numior/kit/table reaches the bundle only when the app imports it.

    Until 1.0 the packages ship as alphas numbered 1.0.0-alpha.N, and the API still changes between them.

  2. Add the Vite plugin ​

    The plugin brings in Tailwind 4 and keeps in the CSS only the styles of the components your code uses:

    ts
    import vue from '@vitejs/plugin-vue';import { numior } from '@numior/kit/vite';import { defineConfig } from 'vite';export default defineConfig({ plugins: [vue(), numior()],});
  3. Import the styles ​

    Add Tailwind and Numior UI to the CSS file of the app, for example src/style.css:

    css
    @import 'tailwindcss';@import '@numior/kit/tailwind/theme.css';@import '@numior/kit/styles.css';
  4. Import the CSS and the Vue plugin ​

    The createNuiConfig plugin sets the language of built-in labels, and Configuration covers the rest of its options:

    ts
    import { createApp } from 'vue';import { createNuiConfig } from '@numior/kit';import App from './App.vue';import './style.css';createApp(App) .use(createNuiConfig({ locale: 'en-US' })) .mount('#app');
  5. Use the components ​

    Import components from @numior/kit and use them in a template:

    How to address you

Next ​

  • Tailwind — how the styles are built and how to set up the theme.
  • Button — the button with a live configurator and the full API.
  • Theming — light and dark schemes, accents and density.
  • Localization — dictionaries and translations of built-in labels.

Edit this page

On this page

Search

Esc