Vue + PrimeVue
90+ ready-made components with the Aura theme (v4, MIT). This page shows exactly what pickstack adds to a Vue project for PrimeVue: the packages, the new files and the changes to existing ones. Every combination is installed, built, linted and tested in CI.
$ npm create pickstack@latest my-app -- --framework vue --modules primevue --yesCustomize in the configurator
Packages it adds
| Package | Version | Type |
|---|---|---|
@primeuix/themes | ^2.0.3 | runtime |
primevue | ^4.5.5 | runtime |
Changes to existing files
⋯ 87 unchanged lines background: #334155; } +.counter {+ width: 18rem;+ text-align: center;+}+ +.actions {+ display: flex;+ justify-content: center;+ gap: 0.75rem;+}+
<script setup lang="ts">+import Button from "primevue/button";+import Card from "primevue/card"; import { ref } from "vue"; const count = ref(0); </script> <template>+ <Card class="counter">+ <template #title>Counter</template>+ <template #content>+ <p class="count">{{ count }}</p>+ </template>+ <template #footer>+ <div class="actions">+ <Button label="-1" severity="secondary" outlined @click="count--" />+ <Button label="+1" @click="count++" />+ </div>+ </template>+ </Card>− <div class="card">− <p class="count">{{ count }}</p>− <div class="row">− <button type="button" class="btn" @click="count--">-1</button>− <button type="button" class="btn" @click="count++">+1</button>− </div>− </div> </template>
+import Aura from "@primeuix/themes/aura";+import PrimeVue from "primevue/config"; import { createApp } from "vue"; import App from "./App.vue"; import "./assets/main.css"; +const app = createApp(App);+ +app.use(PrimeVue, { theme: { preset: Aura } });+ +app.mount("#app");−createApp(App).mount("#app");
Project files
.gitignoreREADME.mdenv.d.tsindex.htmlpackage.jsonsrc/App.vuesrc/assets/main.csssrc/components/CounterCard.vuesrc/main.tstsconfig.app.jsontsconfig.jsontsconfig.node.jsonvite.config.ts