NPM Star
Collections
  1. Home
  2. Compare
  3. ant-design vs primereact
NPM Compare

Compare NPM packages statistics, trends, and features

CollectionsVS Code extensionChrome extensionTermsPrivacyLinkTreeIndiehackersBig Frontendqiuyumi

Unable to load comparison data. Please try again later.

ERROR: No README data found!

License: MIT npm version primereact NPM Downloads Actions CI Discord Chat Stackoverflow Prime Discussions

PrimeReact Hero

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.

//import { ComponentName } from 'primereact/{componentname}'; import { Button } from 'primereact/button'; export default function MyComponent() { return ( <Button label="PrimeReact" /> ) }

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.

// theme import '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

<a href="https://github.com/primefaces/primereact/graphs/contributors"> <img src="https://contrib.rocks/image?repo=primefaces/primereact" /> </a>

Dependencies Comparison

ant-design

Dependencies

Dev Dependencies

Peer Dependencies

primereact

Dependencies

@types/react-transition-group^4.4.1
react-transition-group^4.4.1

Dev Dependencies

Peer Dependencies

@types/react^17.0.0 || ^18.0.0 || ^19.0.0
react^17.0.0 || ^18.0.0 || ^19.0.0
react-dom^17.0.0 || ^18.0.0 || ^19.0.0
StarsIssuesVersionUpdatedⓘLast publish dateCreatedⓘPackage creation dateSizeⓘMinified + Gzipped size
A
ant-design
00N/AN/AN/Ainstall size N/A
P
primereact
8,31435910.9.8a month ago9 years agoinstall size 305.8 KB

Who's Using These Packages

ant-design

umi
umi

A framework in react community ✨

personal-blog
personal-blog

✍️ 个人技术博客

vitesome
vitesome

A simple opinionated Vue3 Starter Template with Vite.js

react-antd-admin-pnpm
react-antd-admin-pnpm

基于react18, antd5开发的gbeata-admin 后台管理系统,gbeata组件库

generator-umi
generator-umi

Documentation

primereact

open-agents-builder
open-agents-builder

AI Agents are missing the UI! We're here to change it. Build Business AI Agents for your company: business workflows, API's, bookings, e-commerce, social commerce, b2b, CPQ, intake forms, NPS tests, made-to-order use cases