css-variants
Version:
Lightweight helpers to compose class names and inline styles using variants. Zero runtime deps, small bundle, and first-class TypeScript support.
2 lines • 579 B
JavaScript
;Object.defineProperty(exports,'__esModule',{value:true});function a(e){if(typeof e=="string")return e;if(typeof e=="number"||typeof e=="bigint")return String(e);if(e==null||typeof e=="boolean")return "";let l="";if(Array.isArray(e)){let r=0,t,s;for(;r<e.length;r++)(t=e[r])&&(s=a(t))&&(l&&(l+=" "),l+=s);return l}for(let r in e)e[r]&&(l&&(l+=" "),l+=r);return l}function n(...e){let l="",r=0,t,s;for(;r<e.length;r++)(t=e[r])&&(s=a(t))&&(l&&(l+=" "),l+=s);return l}var f=n;exports.cx=n;exports.default=f;//# sourceMappingURL=cx.cjs.map
//# sourceMappingURL=cx.cjs.map