# Getting started

Add Numior UI to a Vue 3.5+ app built with Vite. Nuxt takes different steps, covered in
[SSR and Nuxt](/en/guide/ssr#nuxt).

## Installation

### Install the package

```sh [pnpm]
pnpm add @numior/kit
```

```sh [npm]
npm install @numior/kit
```

```sh [yarn]
yarn add @numior/kit
```

```sh [bun]
bun 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.

### 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()],
});
```

### 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';
```

### Import the CSS and the Vue plugin

The `createNuiConfig` plugin sets the language of built-in labels, and
[Configuration](/en/guide/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');
```

### Use the components

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

```vue
<template>
  <form class="flex flex-col gap-3 max-w-sm" @submit.prevent="saved = true">
    <NuiInput v-model="name" label="Name" description="How to address you" />
    <div class="flex items-center gap-3">
      <NuiButton type="submit">Save</NuiButton>
      <span v-if="saved">Saved the name “{{ name }}”.</span>
    </div>
  </form>
</template>

<script setup lang="ts">
import { ref } from 'vue';
import { NuiButton, NuiInput } from '@numior/kit';

const name = ref('');
const saved = ref(false);
</script>
```

## Next

- [Tailwind](/en/guide/tailwind) — how the styles are built and how to set up the theme.
- [Button](/en/components/button) — the button with a live configurator and the full API.
- [Theming](/en/guide/theming) — light and dark schemes, accents and density.
- [Localization](/en/guide/localization) — dictionaries and translations of built-in labels.
