PropTypes
Runtime type checking for React component props and object structures.
UI components and icons npm MIT
Used in agent projects
61
0.5% of 12,697 public repos built with AI coding agents
Rank in ui components and icons
#31 of 75
by use in those projects
Downloads
108M
npm, last 7 days, prop-types
GitHub stars
4,445
last push May 17, 2024
How PropTypes is used
PropTypes is a dependency in 61 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (0.5%), #31 of 75 in ui components and icons. The most used alternative there is Lucide React. Projects that use it most often also use React (96.7%), Babel (JavaScript) (42.6%), Testing Library (41.0%).
Often used with PropTypes
| React | 96.7% of PropTypes projects · 2.2× more than average |
|---|---|
| Babel (JavaScript) | 42.6% of PropTypes projects · 11.2× more than average |
| Testing Library | 41.0% of PropTypes projects · 5.7× more than average |
| ESLint | 73.8% of PropTypes projects · 1.9× more than average |
| React Router | 34.4% of PropTypes projects · 4.5× more than average |
| Axios | 34.4% of PropTypes projects · 3.5× more than average |
| Prettier | 45.9% of PropTypes projects · 2.6× more than average |
| styled-components | 24.6% of PropTypes projects · 20.3× more than average |
By coding agent
| Claude Code | 0.4% of projects set up for it |
|---|---|
| GitHub Copilot | 0.4% of projects set up for it |
| Cursor | 0.5% of projects set up for it |
Share of public repos configured for each agent that list PropTypes as a dependency.
Install
| Package | npm install prop-types |
|---|---|
| Main stacks | TypeScript / JavaScript (41), Next.js (14), React Native / Expo (3), Python (1) |
| Example projects | blopa/Resume-Builder, commercetools/ui-kit, your-digital-rights/yourdigitalrights.org, Aristona/react-phaser-three-game, CDCgov/cdc-open-viz |
Alternatives to PropTypes
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| Lucide React npm Comprehensive icon library with consistent design for React applications. |
2,519 (19.8%) | 108M | 24.9K | ISC |
| Class Variance Authority npm Type-safe CSS class composition for component variants and styling. |
1,791 (14.1%) | 66.3M | 6,903 | Apache-2.0 |
| Radix UI npm Unstyled, accessible component primitives for building design systems. |
1,519 (12.0%) | 182M | 19.4K | MIT |
| Sonner npm Opinionated toast notification component for React applications. |
1,025 (8.1%) | 49.6M | 13K | MIT |
| React Icons npm Popular icon packs imported as React components with ES6. |
688 (5.4%) | 8.8M | 12.7K | MIT |
| cmdk npm Command menu component library for React applications. |
687 (5.4%) | 42.2M | 13K | MIT |
| React Day Picker npm Flexible and customizable date picker component for React. |
675 (5.3%) | 42.8M | 6,859 | MIT |
| Vaul npm Unstyled, accessible drawer component for React with smooth animations. |
582 (4.6%) | 35M | 8,638 | MIT |