Awesome Open Source
Awesome Open Source

License: MIT npm version Discord Chat

PrimeReact Hero


PrimeReact is a rich set of open source UI Components for React. 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 and react-transition-group for animations.

dependencies: {
    "react": "^17.0.1",
    "react-dom": "^17.0.1",
    "react-transition-group": "^4.4.1",
    "primeicons": "^4.1.0"


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/saga-blue/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 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.

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Javascript (1,551,389
Reactjs (72,368
Bootstrap (9,930
Chart (2,234
Ui Components (1,682
Tree (1,616
Material (1,582
React Components (1,376
Grid (1,298
Datatables (589
Flex (481
Ripple (216
Related Projects