• Stars
    star
    6,409
  • Rank 6,206 (Top 0.2 %)
  • Language
    CSS
  • License
    MIT License
  • Created about 8 years ago
  • Updated 4 months ago

Reviews

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

Repository Details

The Most Complete React UI Component Library

License: MIT npm version primereact Actions CI Discord Chat Stackoverflow

PrimeReact Hero

PrimeReact

PrimeReact is available at npm.

Download

PrimeReact is available at npm, if you have an existing application run the following command to download it to your project.

// with npm
npm install primereact

// with yarn
yarn add primereact

Please note that react >= 17.0.0 and react-dom >= 17.0.0 are peer dependencies and some components have optional dependencies.

Styles

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

//theme
import 'primereact/resources/themes/lara-light-indigo/theme.css';

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

Each PrimeReact 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.

Module

//import { ComponentName } from 'primereact/{componentname}';
import { Dialog } from 'primereact/dialog';
import { Accordion, AccordionTab } from 'primereact/accordion';

QuickStart

Example applications based on create-react-app and Next.js are available at github.

Next.js PrimeReact has first class support for SSR and Next.JS, in fact this website is also built with Next.js

Getting Started with NextJS and PrimeReact

CRA Create-React-App is the official scaffolding project by Facebook

Getting Started with PrimeReact

TypeScript

Typescript is fully supported as type definition files are provided in the npm package of PrimeReact. A sample typescript-primereact application is available as well at github.

Contributors

More Repositories

1

primeng

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

primevue

Next Generation Vue UI Component Library
Vue
9,410
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