• Stars
    star
    6,853
  • Rank 5,480 (Top 0.2 %)
  • Language
    CSS
  • License
    MIT License
  • Created over 5 years ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Next Generation Vue UI Component Library

License: MIT npm version Discord Chat

PrimeVue Hero

PrimeVue

PrimeVue is a rich set of open source UI Components for Vue. See PrimeVue homepage for live showcase and documentation.

Download

PrimeVue is available at npm.

// with npm
npm install primevue

// with yarn
yarn add primevue

Plugin

PrimeVue plugin is required to be installed with the use function to set up the default configuration.

import {createApp} from 'vue';
import PrimeVue from 'primevue/config';
const app = createApp(App);

app.use(PrimeVue);

Styles

Theme, core and icons are the necessary css files of the components, visit the Themes section for the complete list of available themes to choose from.

// theme
import 'primevue/resources/themes/lara-light-blue/theme.css';

// core
import 'primevue/resources/primevue.min.css';

Each PrimeVue theme has its own font family so it is suggested to apply it to your application for a unified look.

body {
    font-family: var(--font-family);
}

Usage

Each component can be imported individually so that you only bundle what you use. Import path is available in the documentation of the corresponding component.

import Button from "primevue/button"

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

Prop Cases

Component prop names are described as camel case throughout the documentation however kebap-case is also fully supported. Events on the other hand should always be kebap-case.

<Dialog :showHeader="false"></Dialog>

<!-- can be written as -->

<Dialog :show-header="false"></Dialog>

Nuxt Integration

PrimeVue can easily be used with Nuxt 3 using a custom plugin.

nuxt.config.js

Open the nuxt configuration file and add the css dependencies.

export default defineNuxtConfig({
    css: [
        "primevue/resources/themes/lara-light-blue/theme.css",
        "primevue/resources/primevue.css"
    ],
    build: {
      transpile: ["primevue"]
    }
})

primevue.js

Create a file like primevue.js under the plugins directory for the configuration.

import { defineNuxtPlugin } from "#app";
import PrimeVue from "primevue/config";
import Button from "primevue/button";

export default defineNuxtPlugin((nuxtApp) => {
    nuxtApp.vueApp.use(PrimeVue, {ripple: true});
    nuxtApp.vueApp.component('Button', Button);
    //other components that you need
});

Example

We've created various samples for the popular options in the Vue ecosystem. Visit the primevue-examples repository for the samples.

Vite

vite

Nuxt

nuxt

Vue-CLI

vue-cli

Astro

astro

Contributors

More Repositories

1

primeng

The Most Complete Angular UI Component Library
CSS
9,203
star
2

primereact

The Most Complete React UI Component Library
CSS
5,395
star
3

primefaces

Ultimate Component Suite for JavaServer Faces
Java
1,712
star
4

sakai-react

Free React Admin Template
CSS
735
star
5

primeflex

PrimeFlex is a lightweight responsive CSS utility library to accompany Prime UI libraries and static webpages as well
JavaScript
539
star
6

sakai-ng

Free Angular Admin Template by PrimeNG
CSS
446
star
7

sakai-vue-cli

Free Vue Admin Template by PrimeVue
CSS
439
star
8

sakai-vue

CSS
333
star
9

primeui

Rich set of javascript-css only widgets
HTML
274
star
10

primevue-tailwind

PrimeVue Components Styled with Tailwind CSS
JavaScript
235
star
11

primeicons

Icon Library for Prime UI Libraries
HTML
225
star
12

primeng-quickstart-cli

CLI Setup for PrimeNG
TypeScript
181
star
13

primereact-quickstart

CSS
103
star
14

primereact-examples

PrimeReact Example Projects
JavaScript
97
star
15

primefaces-showcase-legacy

Demo Application
HTML
89
star
16

primeng-sass-theme

PrimeNG Theming with SASS
SCSS
77
star
17

sakai-nuxt

Free Admin Template for Nuxt 3
CSS
76
star
18

primevue-examples

PrimeVue Example Projects
Vue
68
star
19

primevue-sass-theme

PrimeVue Theming with SASS
SCSS
56
star
20

primelocale

JavaScript
45
star
21

primevue-nuxt-module

TypeScript
43
star
22

primevue-quickstart-vite

Starter application with Vite, Vue 3 and PrimeVue 3
Vue
42
star
23

primevue-quickstart-nuxt3

JavaScript
40
star
24

primereact-typescript-quickstart

Quickstart Application for PrimeReact with Typescript
TypeScript
35
star
25

primefaces-test

Sample project to provide test cases
Java
34
star
26

primereact-nextjs-quickstart

Quickstart Application for PrimeReact with Nextjs
JavaScript
34
star
27

primevue-nuxtjs-quickstart

PrimeVue NuxtJS QuickStart
Vue
29
star
28

themes

Community Themes
CSS
27
star
29

primereact-sass-theme

PrimeReact Theming with SASS
SCSS
21
star
30

primefaces-sass-theme

PrimeFaces Theming with SASS
SCSS
13
star
31

sakai-react-next

CSS
9
star
32

primeui-distribution

Distribution repository for PrimeUI
JavaScript
8
star
33

maven-jsf-plugin

Code Generator for Core
Java
8
star
34

primeng-issue-template

PrimeNG Issue Template
TypeScript
5
star
35

primevue-tailwind-preset-template

Template for a Custom PrimeVue Tailwind Preset
Vue
5
star
36

primereact-tailwind

PrimeReact Components Styled with Tailwind CSS
JavaScript
5
star
37

landing

Landing Pages of UI Libraries
HTML
4
star
38

primevue-quickstart-create-vue-ts

CSS
3
star
39

legacy

PrimeFaces for JSF 1.2
JavaScript
2
star
40

primeflex-landing

HTML
1
star
41

primefaces.github.io

Page for PrimeFaces.org
HTML
1
star
42

primevue-quickstart-create-vue

CSS
1
star
43

postcss-primeflex

PrimeFlex PostCSS Plugin
JavaScript
1
star
44

primeblazor

Blazor UI Component Library
CSS
1
star