{
 "kind": "tool",
 "slug": "prop-types",
 "path": "tools/prop-types/",
 "name": "PropTypes",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "UI components and icons",
   "tools/ui-components/"
  ]
 ],
 "lead": "Runtime type checking for React component props and object structures.",
 "chips": [
  {
   "label": "UI components and icons",
   "path": "tools/ui-components/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install prop-types"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/facebook/prop-types"
  },
  {
   "label": "Website",
   "href": "https://facebook.github.io/react/"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from npm.",
   "src": "https://github.com/facebook/prop-types"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "No longer maintained",
   "status": "no",
   "sub": "Repository archived",
   "note": "",
   "src": "https://github.com/facebook/prop-types"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "24 projects",
   "status": "info",
   "sub": "#39 of 230 in its category",
   "note": "Dependency in 24 public GitHub projects set up for AI coding agents that we scanned (0.4%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What PropTypes does",
   "parts": [
    {
     "t": "prose",
     "text": "Runtime type checking for React component props and object structures."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "PropTypes popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "67",
       "of": "/ 100",
       "l": "Gid Score, #568 overall"
      },
      {
       "n": "138M",
       "l": "downloads a week, npm"
      },
      {
       "n": "4,443",
       "l": "GitHub stars"
      },
      {
       "n": "24",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How PropTypes is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "PropTypes is a dependency in 24 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (0.5% of the 4,867 JavaScript/TypeScript ones), #39 of 230 in ui components and icons.",
      "Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 112; those are left out of every share on this page.",
      "Projects that use it most often also use React (95.8%), Babel (JavaScript) (54.2%), Testing Library (50.0%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "14 projects, 0.5%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "12 projects, 0.4%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "12 projects, 0.5%",
       "v": "Cursor",
       "path": "agents/cursor/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 95.8% of its projects",
       "v": "React",
       "path": "tools/react/"
      },
      {
       "l": "In 54.2% of its projects",
       "v": "Babel (JavaScript)",
       "path": "tools/babel-npm/"
      },
      {
       "l": "In 50.0% of its projects",
       "v": "Testing Library",
       "path": "tools/testing-library/"
      },
      {
       "l": "In 83.3% of its projects",
       "v": "ESLint",
       "path": "tools/eslint/"
      },
      {
       "l": "In 58.3% of its projects",
       "v": "Prettier",
       "path": "tools/prettier/"
      },
      {
       "l": "In 37.5% of its projects",
       "v": "uuid",
       "path": "tools/uuid/"
      },
      {
       "l": "In 37.5% of its projects",
       "v": "Jest",
       "path": "tools/jest/"
      },
      {
       "l": "In 54.2% of its projects",
       "v": "Vite",
       "path": "tools/vite/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about PropTypes",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "More in UI components and icons",
       "path": "tools/ui-components/",
       "items": [
        {
         "text": "Lucide React",
         "path": "tools/lucide-react/"
        },
        {
         "text": "Class Variance Authority",
         "path": "tools/class-variance-authority/"
        },
        {
         "text": "Radix UI",
         "path": "tools/radix-ui/"
        },
        {
         "text": "Sonner",
         "path": "tools/sonner/"
        },
        {
         "text": "cmdk",
         "path": "tools/cmdk/"
        },
        {
         "text": "React Day Picker",
         "path": "tools/react-day-picker/"
        },
        {
         "text": "Vaul",
         "path": "tools/vaul/"
        },
        {
         "text": "react-resizable-panels",
         "path": "tools/react-resizable-panels/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "PropTypes",
       "me": true,
       "facts": [
        "MIT",
        "Gid 67",
        "138M/wk"
       ]
      }
     ],
     "more": "Compare PropTypes with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install prop-types"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for PropTypes yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm prop-types"
  ],
  [
   "Category",
   "UI components and icons"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Gid Score",
   "66.7"
  ],
  [
   "Rank in category",
   "#39 of 230"
  ],
  [
   "GitHub",
   "facebook/prop-types"
  ],
  [
   "Last change",
   "May 17, 2024"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/facebook.png"
}