Installations
npm install primereact
Developer Guide
Typescript
No
Module System
CommonJS
Min. Node Version
>=14.0.0
Node Version
18.20.5
NPM Version
10.8.2
Score
90.4
Supply Chain
80.3
Quality
92.9
Maintenance
100
Vulnerability
100
License
Releases
Contributors
Languages
CSS (59.93%)
JavaScript (39.58%)
SCSS (0.5%)
Developer
Download Statistics
Total Downloads
19,029,684
Last Day
35,693
Last Week
156,140
Last Month
671,981
Last Year
7,726,430
GitHub Statistics
7,289 Stars
11,052 Commits
1,077 Forks
73 Watching
4 Branches
310 Contributors
Bundle Size
1.19 MB
Minified
300.71 kB
Minified + Gzipped
Package Meta Information
Latest Version
10.9.2
Package Id
primereact@10.9.2
Unpacked Size
56.69 MB
Size
20.22 MB
File Count
1,483
NPM Version
10.8.2
Node Version
18.20.5
Publised On
24 Jan 2025
Total Downloads
Cumulative downloads
Total Downloads
19,029,684
Last day
-2%
35,693
Compared to previous day
Last week
-11.1%
156,140
Compared to previous week
Last month
4.4%
671,981
Compared to previous month
Last year
63.8%
7,726,430
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
2
Peer Dependencies
3
PrimeReact
PrimeReact is a rich set of open source UI Components for React. See PrimeReact homepage for live showcase and documentation.
Download
PrimeReact is available at npm.
# Using npm
npm install primereact
# Using yarn
yarn add primereact
# Using pnpm
pnpm add primereact
Import
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.
1//import { ComponentName } from 'primereact/{componentname}'; 2import { Button } from 'primereact/button'; 3 4export default function MyComponent() { 5 return ( 6 <Button label="PrimeReact" /> 7 ) 8}
Theming
PrimeReact has two theming modes; styled or unstyled.
Styled Mode
Styled mode is based on pre-skinned components with opinionated themes like Material, Bootstrap or PrimeOne themes. Theme is the required css file to be imported, visit the Themes section for the complete list of available themes to choose from.
1// theme 2import 'primereact/resources/themes/lara-light-cyan/theme.css';
Unstyled Mode
Unstyled mode is disabled by default for all components. Using the PrimeReact context, set unstyled
as true to enable it globally. Visit the Unstyled mode documentation for more information and examples.
Contributors
No vulnerabilities found.
Reason
30 commit(s) and 13 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE.md:0
- Info: FSF or OSI recognized license: MIT License: LICENSE.md:0
Reason
no binaries found in the repo
Reason
4 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-c59h-r6p8-q9wc
- Warn: Project is vulnerable to: GHSA-g77x-44xx-532m
- Warn: Project is vulnerable to: GHSA-7gfc-8cq8-jh5f
- Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j
Reason
Found 15/30 approved changesets -- score normalized to 5
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Info: topLevel 'contents' permission set to 'read': .github/workflows/comment_by_label.yml:8
- Warn: topLevel 'contents' permission set to 'write': .github/workflows/generate_api_doc.yml:11
- Info: topLevel 'contents' permission set to 'read': .github/workflows/issue-inactive-checker.yml:8
- Info: topLevel 'contents' permission set to 'read': .github/workflows/issue-labeled.yml:8
- Info: topLevel 'contents' permission set to 'read': .github/workflows/label.yml:10
- Info: topLevel 'contents' permission set to 'read': .github/workflows/nightly.yml:8
- Info: topLevel 'contents' permission set to 'read': .github/workflows/node.js.yml:10
- Info: topLevel 'contents' permission set to 'read': .github/workflows/pr_verify_linked_issue.yml:9
- Info: topLevel 'contents' permission set to 'read': .github/workflows/stale.yml:6
- Info: no jobLevel write permissions found
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
- Warn: branch protection not enabled for branch 'prod'
- Warn: branch protection not enabled for branch 'v9'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 22 are checked with a SAST tool
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/generate_api_doc.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/primefaces/primereact/generate_api_doc.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/generate_api_doc.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/primefaces/primereact/generate_api_doc.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/issue-inactive-checker.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/primefaces/primereact/issue-inactive-checker.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/issue-inactive-checker.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/primefaces/primereact/issue-inactive-checker.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/issue-inactive-checker.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/primefaces/primereact/issue-inactive-checker.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/issue-labeled.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/primefaces/primereact/issue-labeled.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/issue-labeled.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/primefaces/primereact/issue-labeled.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/issue-labeled.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/primefaces/primereact/issue-labeled.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/label.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/primefaces/primereact/label.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nightly.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/primefaces/primereact/nightly.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nightly.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/primefaces/primereact/nightly.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/primefaces/primereact/node.js.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/primefaces/primereact/node.js.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr_verify_linked_issue.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/primefaces/primereact/pr_verify_linked_issue.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/stale.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/primefaces/primereact/stale.yml/master?enable=pin
- Warn: npmCommand not pinned by hash: .github/workflows/generate_api_doc.yml:33
- Warn: npmCommand not pinned by hash: .github/workflows/nightly.yml:31
- Warn: npmCommand not pinned by hash: .github/workflows/node.js.yml:31
- Info: 0 out of 7 GitHub-owned GitHubAction dependencies pinned
- Info: 1 out of 9 third-party GitHubAction dependencies pinned
- Info: 0 out of 3 npmCommand dependencies pinned
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Score
4.5
/10
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn MoreOther packages similar to primereact
@superdesk/primereact
Superdesk fork of PrimeReact 5.0.2
aisdash-primereact
[![Join the chat at https://gitter.im/primefaces/primereact](https://badges.gitter.im/primefaces/primereact.svg)](https://gitter.im/primefaces/primereact?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
@quarkunlimit/primereact
PrimeReact is an open source UI library for React featuring a rich set of 90+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with Prime
primelocale
PrimeLocale provides i18n and l7n options globally for the components in PrimeUI libraries.