clsx
A tiny utility for constructing `className` strings conditionally
clsx is a tiny JavaScript utility (roughly a few hundred bytes) for constructing className strings conditionally, commonly used in React and other component frameworks. It is intended as a faster and smaller drop-in replacement for the popular classnames package, but with a minimalistic API and implementation. The function accepts any number of arguments in a variety of forms: strings, numbers, arrays, and objects where truthy values indicate which classes to include.