• Stars
    star
    9,410
  • Rank 3,796 (Top 0.08 %)
  • Language Vue
  • License
    MIT License
  • Created almost 6 years ago
  • Updated 3 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,964
star
2

primereact

The Most Complete React UI Component Library
CSS
6,409
star
3

primefaces

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

sakai-react

Free React Admin Template
CSS
833
star
5

primeflex

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

sakai-vue

JavaScript
598
star
7

sakai-ng

Free Angular Admin Template by PrimeNG
CSS
544
star
8

primevue-tailwind

PrimeVue Components Styled with Tailwind CSS
JavaScript
521
star
9

sakai-vue-cli

Free Vue Admin Template by PrimeVue
CSS
452
star
10

primeui

Rich set of javascript-css only widgets
HTML
281
star
11

primeicons

Icon Library for Prime UI Libraries
HTML
255
star
12

primeng-quickstart-cli

CLI Setup for PrimeNG
TypeScript
186
star
13

primevue-examples

PrimeVue Example Projects
Vue
122
star
14

sakai-nuxt

Free Admin Template for Nuxt 3
CSS
113
star
15

primereact-examples

PrimeReact Example Projects
JavaScript
108
star
16

primeng-sass-theme

PrimeNG Theming with SASS
SCSS
107
star
17

primereact-quickstart

CSS
103
star
18

primefaces-showcase-legacy

Demo Application
HTML
88
star
19

primevue-nuxt-module

TypeScript
72
star
20

primelocale

JavaScript
69
star
21

primevue-sass-theme

PrimeVue Theming with SASS
SCSS
66
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
37
star
25

primefaces-test

Sample project to provide test cases
Java
35
star
26

primereact-sass-theme

PrimeReact Theming with SASS
SCSS
29
star
27

themes

Community Themes
CSS
28
star
28

primefaces-sass-theme

PrimeFaces Theming with SASS
SCSS
14
star
29

sakai-react-next

CSS
9
star
30

primeui-distribution

Distribution repository for PrimeUI
JavaScript
8
star
31

maven-jsf-plugin

Code Generator for Core
Java
8
star
32

primevue-tailwind-preset-template

Template for a Custom PrimeVue Tailwind Preset
Vue
8
star
33

primereact-tailwind

PrimeReact Components Styled with Tailwind CSS
JavaScript
7
star
34

tailwindcss-primeui

Tailwind CSS Utilities for Prime UI Libraries
JavaScript
7
star
35

landing

Landing Pages of UI Libraries
HTML
5
star
36

primeng-issue-template

PrimeNG Issue Template
TypeScript
5
star
37

primeblazor

Blazor UI Component Library
CSS
4
star
38

primevue-quickstart-create-vue-ts

CSS
3
star
39

primeng-examples

PrimeNG Example Projects
SCSS
3
star
40

legacy

PrimeFaces for JSF 1.2
JavaScript
2
star
41

primeuix

TypeScript
2
star
42

primeclt

Command Line Tools for Prime UI Component Libraries
CSS
2
star
43

primeflex-landing

HTML
1
star
44

primefaces.github.io

Page for PrimeFaces.org
HTML
1
star
45

primevue-quickstart-create-vue

CSS
1
star
46

postcss-primeflex

PrimeFlex PostCSS Plugin
JavaScript
1
star
47

primereact-reboot

CSS
1
star