# clsx [](https://travis-ci.org/lukeed/clsx)
> A tiny (200B) utility for constructing `className` strings conditionally.<Br>Also serves as a [faster](/bench) & smaller drop-in replacement for the `classnames` module.
> A tiny (199B) utility for constructing `className` strings conditionally.<Br>Also serves as a [faster](/bench) & smaller drop-in replacement for the `classnames` module.
This module is available in three formats:
* **ES Module**: `dist/clsx.mjs`
## Related
- [obj-str](https://github.com/lukeed/obj-str) - Similar utility that is faster and smaller (100B) but only works with Objects.
- [obj-str](https://github.com/lukeed/obj-str) - Similar utility that is faster and smaller (96B) but only works with Objects.
## License
MIT © [Luke Edwards](https://lukeed.com)