clsx
https://github.com/lukeed/clsx
JavaScript
A tiny (239B) utility for constructing `className` strings conditionally.
Triage Issues!
When you volunteer to triage issues, you'll receive an email each day with a link to an open issue that needs help in this project. You'll also receive instructions on how to triage issues.
Triage Docs!
Receive a documented method or class from your favorite GitHub repos in your inbox every day. If you're really pro, receive undocumented methods or classes and supercharge your commit history.
JavaScript not yet supported0 Subscribers
Add a CodeTriage badge to clsx
Help out
- Issues
- fix: enforce stricter type for lite
- Feature: clsx.arr() to return class names in array format
- Performance check: Current code might be 6% or so slower that can be
- doc: add npm download badge
- feat: declare package as side-effect free
- Feature Request: Enhanced Responsive Classnames Support
- Add detailed documentation
- fix: improve type test
- Add JSR support
- `./node_modules/clsx/dist/clsx.m.js` Module build failed: Error: ENOENT: no such file or directory
- Docs
- JavaScript not yet supported