OpenVue

Install OpenVue with Vite

Setting up OpenVue in a Vite project.

OpenVue is available for download on npm registry.


# Using npm
npm install openvue@beta @primeuix/themes

# Using yarn
yarn add openvue@beta @primeuix/themes

# Using pnpm
pnpm add openvue@beta @primeuix/themes

OpenVue plugin is required to be installed as an application plugin to set up the default configuration. The plugin is lightweight, and only utilized for configuration purposes.


import { createApp } from 'vue';
import OpenVue from 'openvue/config';

const app = createApp(App);
app.use(OpenVue);

Configure OpenVue to use a theme like Aura.


import { createApp } from 'vue';
import OpenVue from 'openvue/config';
import Aura from '@primeuix/themes/aura';

const app = createApp(App);
app.use(OpenVue, {
    theme: {
        preset: Aura
    }
});

Verify your setup by adding a component such as Button. Each component can be imported and registered individually so that you only include what you use for bundle optimization. Import path is available in the documentation of the corresponding component.


import Button from "openvue/button"

const app = createApp(App);
app.component('Button', Button);

We've created various samples for the popular options in the Vue ecosystem. Visit the openvue-examples repository for more samples including vite-quickstart and vite-ts-quickstart.

Welcome to the Prime UI Ecosystem! Once you have OpenVue up and running, we recommend exploring the following resources to gain a deeper understanding of the library.