Pinegrow PrimeVue Plugin

PrimeVue plugin for Pinegrow ⚡️
Pinegrow PrimeVue Plugin provides customized visual controls, design panel for theming and other rich visual features customized for your PrimeVue experience.
Note:
- This plugin is generally used in conjunction with the Pinegrow Vite Plugin or with the meta-framework specific Pinegrow modules for Nuxt, Quasar, Iles and Astro.
- To use PrimeVue in Pinegrow apps, you require an active PrimeVue Addon subscription.
- Learn more about Vue Designer
Features
- 🎨 Visually live-design your Vite-powered PrimeVue apps (Vue, Nuxt, Quasar, Iles, Astro, etc)
- ⚙️ Smartly integrates into your Vite workflow in dev-mode only
- ✨ Clean code 😃, No lock-in - You are in control of your projects and development workflow ❤️
Quick Setup
- Install: Add
@pinegrow/primevue-plugin to your project
npm install -D @pinegrow/primevue-plugin
pnpm add -D @pinegrow/primevue-plugin
- Configure: Add
primevue along with configPath as options to liveDesigner in your config.
export default defineConfig({
plugins: [
liveDesigner({
primevue: {
configPath: 'primevue.config.ts',
restartOnThemeUpdate: true,
},
}),
],
})
export default defineNuxtConfig({
modules: [
'@pinegrow/nuxt-module',
],
pinegrow: {
liveDesigner: {
primevue: {
configPath: 'primevue.config.ts',
restartOnThemeUpdate: true,
},
},
},
})
import type { LiveDesignerOptions } from '@pinegrow/vite-plugin'
export default defineConfig({
modules: [
[
'@pinegrow/iles-module',
{
liveDesigner: {
primevue: {
configPath: 'primevue.config.ts',
restartOnThemeUpdate: true,
},
} as LiveDesignerOptions,
},
],
],
})
import { defineConfig } from 'astro/config'
import vue from '@astrojs/vue'
import Pinegrow from '@pinegrow/astro-module'
export default defineConfig({
integrations: [
vue(),
Pinegrow({
liveDesigner: {
primevue: {
configPath: 'primevue.config.ts',
restartOnThemeUpdate: true,
},
},
}),
],
})
-
Now, open your project in your Pinegrow app (currently only Vue Designer). ✨
-
Theme Customization (optional) - Pinegrow PrimeVue addon enables easy theming based on colors, fonts and background images. Theme files are saved at the location specified by the themePath option (default: [src]/themes/pg-primevue/tokens.[cjs,mjs]). To use the theme, follow the instructions in the Config Panel of your Pinegrow app (currently only Vue Designer) under @pinegrow/primevue-plugin package.
Options
interface PinegrowPrimeVueModuleOptions {
configPath: string | any
themePath?: string | boolean
utilities?: boolean
restartOnConfigUpdate?: boolean
restartOnThemeUpdate?: boolean
}
interface PinegrowPrimeVueModule {
primevue: PinegrowPrimeVueModuleOptions
}
License
MIT License
Copyright (c) Pinegrow