Skip to content
PrimeReact is a collection of rich UI components for React
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
exports Fixed #671 - Slider.d.ts error Dec 24, 2018
public Update theme.css files for Tree Filter Feb 7, 2019
src Fixed #814 - Overlays wrong position on initial/first render Mar 15, 2019
.npmignore .vscode npm ignore Mar 1, 2019
.nvmrc Update to latest react-scripts Dec 17, 2018 Readme fix Aug 29, 2018
gulpfile.js Fixed build to include themes Aug 25, 2018
package.json Set version Feb 19, 2019

Join the chat at


PrimeReact is a rich set of open source UI Components for React.

alt text

See PrimeReact homepage for live showcase and documentation.


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

npm install primereact --save
npm install primeicons --save


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


Majority of PrimeReact components (95%) are native and there are some exceptions having 3rd party dependencies such as Google Maps for GMap.

In addition, components require PrimeIcons for icons, classNames package to manage style classes and react-transition-group for animations.

dependencies: {
    "react": "^16.0.0",
    "react-dom": "^16.0.0",
    "react-transition-group": "^2.2.1",
    "classnames": "^2.2.5",
    "primeicons": "^1.0.0-beta.10"


The css dependencies are as follows, note that you may change the theme with another one of your choice.


If you are using a bundler such as webpack with a css loader you may also import them to your main application component, an example from create-react-app would be.

import 'primereact/resources/themes/nova-light/theme.css';
import 'primereact/resources/primereact.min.css';
import 'primeicons/primeicons.css';


An example application based on create-react-app is available at github.


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.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.