Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

classnames

Utility for conditionally combining class names in React and other JavaScript projects.

UtilitiesNPM

GitHubWebsite

1. License

License from npm.

github.com/JedWatson/classnames

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What classnames does

Utility for conditionally combining class names in React and other JavaScript projects.

classnames popularity

75 / 100
Gid Score, #205 overall
50.8M
downloads a week, npm
17.8K
GitHub stars
26
agent projects use it
classnames: downloads per weeknpm, classnames 50,776,147
classnames: GitHub starsJedWatson/classnames 17,773

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How classnames is used

  • classnames is a dependency in 26 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), #57 of 408 in utilities.
  • 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 160; those are left out of every share on this page.
  • The most used alternative in our scan is clsx (1,212 projects).
  • Projects that use it most often also use React (100.0%), Framer Motion (50.0%), Radix UI (50.0%).

By coding agent

19 projects, 0.8%
12 projects, 0.4%
8 projects, 0.3%

Often used with

In 100.0% of its projects
In 50.0% of its projects
In 50.0% of its projects
In 46.2% of its projects
In 46.2% of its projects
In 57.7% of its projects
In 57.7% of its projects
In 42.3% of its projects

More about classnames

More in Utilities

Alternatives

classnames This page

MITGid 7550.8M/wk

clsx

Tiny utility for conditionally constructing className strings.

MITGid 82179M/wk

Compare classnames with another tool

Get started

Install it.

npm install classnames

No step-by-step start for classnames yet: we have not written its hand-checked card.