classix
Version:
The fastest and tiniest utility for conditionally joining classNames.
10 lines (8 loc) • 312 B
TypeScript
type ClassName = string | boolean | null | undefined;
/**
* Conditionally join classNames into a single string
* @param {...String} args The expressions to evaluate
* @returns {String} The joined classNames
*/
declare function cx(...args: ClassName[]): string;
export { type ClassName, cx, cx as default };