A Vue 3 UI component library for internal and external web applications. Includes ready‑to‑use UI elements (buttons, inputs, selects, tables, modals, etc.), utilities, and styles.
- Install with yarn
yarn add @dv.net/ui-kit
- Use in a Vue 3 (Vite) app
<script setup lang="ts">
import { UiButton, UiInput } from "@dv.net/ui-kit";
</script>
<template>
<UiButton>Submit</UiButton>
<UiInput v-model="value" placeholder="Enter text" />
</template>
<style>
@import "@dv.net/ui-kit/dist/style.css";
</style>
You can run a local demo app with examples of all components.
# development mode
yarn run dev
# build demo (static files)
yarn run build-demo
dev
— run the demo app with Vitebuild
— type check (tsc) + build the component librarybuild-only
— build the library without tscbuild-demo
— build the demo app (--mode demo
)lint
— ESLint + Stylelint with auto‑fixgenerate-svg-list
— generate an SVG icon list based onsrc/lib/assets/icons
- Vue 3 (
^3.5
) with<script setup>
- Vite (
^7
) +@vitejs/plugin-vue
- TypeScript (
^5.8
), d.ts generation viavite-plugin-dts
- SCSS: shared styles and variables in
src/lib/assets/scss
- ESLint + Stylelint + Prettier
- @floating-ui/vue, @vueuse/core, dayjs, maska, vue3-lottie, vue-virtual-scroller
- SVG loading via
vite-svg-loader
(SVGO withremoveViewBox: false
,prefixIds
)
src/
lib/ # component library (sources)
assets/ # icons, animations, scss, shared style.scss
components/ # components: UiButton, UiInput, UiSelect, ...
index.ts # public exports of the library
pages/ # demo pages with examples
router/ # demo app router
main.ts # demo app entry
App.vue # demo root component
vite.config.ts # library and demo build config
- Install dependencies
yarn install
- Start the demo
yarn dev
- Make changes in
src/lib/**
— the demo will hot‑reload.
Code quality checks:
yarn lint
Generate icon list (when SVG set changes):
yarn generate-svg-list
yarn build
The output will be in dist/
:
dist/index.js
— ES module bundledist/index.d.ts
— TypeScript typesdist/style.css
— shared library styles
- Node.js
^20.19.0
or>=22.12.0
- Consumer project:
vue >= 3.5.0
,vue-router >= 4.4.0
Distributed under the MIT license. See LICENSE
for details.