Setting up PrimeVue in a Vite project.
You can use PrimeVue and Vue.js from a CDN with a script tag. This approach does not involve any build step, and is suitable for enhancing static HTML. This guide uses unpkg however other providers such as jsdeliver and cdnjs can also be used.
Create an app container element and setup the application using createApp.
PrimeVue plugin is required to be installed as an application plugin to set up the default configuration. The plugin is lightweight, only sets up the configuration object without affecting your application.
Include the theme file with a link element, see themes section for the complete list of available themes to choose from.
Include the component to use with a script tag.
A complete example using a PrimeVue DatePicker. You can also view this sample live at Stackblitz.