JedWatson/classnames
A simple javascript utility for conditionally joining classNames together observed · 2026-08-28
Health v2 · maintenance only
77/100
- Activity 99
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4320
- days_rel: n/a
- days_push: 10
- n_releases_24m: 0
Adoption not part of the score
17783 stars · 559 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A tiny JavaScript utility for conditionally joining CSS class names together. It is a widely used npm package, especially common in React projects.
Use cases
- conditionally apply css classes in react components
- join class names based on boolean flags
- build dynamic className strings
- toggle css classes without string concatenation
- clean up conditional styling logic in javascript
When to choose
- you need a tiny, dependency-free utility for composing class names
- you work with React or other component libraries and want idiomatic conditional classes
- you want a battle-tested, stable package with huge adoption
When to avoid
- you use a framework with built-in class name helpers
- you need CSS-in-JS or runtime styling solutions rather than class name strings
Facets
library · maturity stable
ui-components developer-tools web-development frontend browser cross-platform css-classes react utility conditional-classnames nodejs
2 sources
- readme: https://github.com/JedWatson/classnames · fetched 2026-08-28 · 197b72ca098e
- registry_npm: https://registry.npmjs.org/classnames · fetched 2026-08-29 · 3933d76e074b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| JedWatson/classnames | main | 77 |
For agents
markdown · JSON · MCP: product_card(name="JedWatson/classnames")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem