Vue 3 component library for Prozorro interfaces.
npm install @prozorro/prozorro-uiPeer dependency:
npm install vueThe package exposes both compiled CSS and the SCSS entrypoint.
Use compiled CSS when you just need the library styles:
import "@prozorro/prozorro-ui/style.css";Use SCSS when your app compiles Sass and you want the source entry:
import "@prozorro/prozorro-ui/main.scss";<script setup lang="ts">
import { PzText } from "@prozorro/prozorro-ui";
</script>
<template>
<PzText variant="h1-bold">Procurement announcement</PzText>
<PzText
variant="body-regular"
as="p"
>
Suppliers can review requirements, deadlines, and attached documents.
</PzText>
</template>Type imports:
import type { PzTextProps, PzTextTag, PzTextVariant } from "@prozorro/prozorro-ui";npm run storybookStatic build:
npm run build:storybooknpm run devstarts the Vite dev servernpm run buildbuilds the library bundle and Storybooknpm run build:libbuilds the library bundlenpm run storybookstarts Storybooknpm run build:storybookbuilds the static Storybook site intodist/appnpm run lintruns ESLint and Stylelintnpm run typecheckrunsvue-tsc --noEmit