<> {/* attributes */} {/* SHOULD emit diagnostics (class/className attributes supported by default) */}
{/* SHOULD NOT emit diagnostics (custom attributes not specified in options) */}
{/* utility sorting */} {/* SHOULD emit diagnostics (class attribute supported by default) */}
; // functions /* SHOULD NOT emit diagnostics (functions not specified in options) */ clsx("px-2 foo p-4 bar"); tw`px-2 foo p-4 bar`; // TODO: tagged template literals with static member expressions tw.div`px-2 foo p-4 bar`; notClassFunction("px-2 foo p-4 bar"); notTemplateFunction`px-2 foo p-4 bar`; notTemplateFunction.div`px-2 foo p-4 bar`; // nested values /* SHOULD emit diagnostics (class attribute supported by default) */
;
;
;
;
; /* SHOULD NOT emit diagnostics (clsx function not specified in options) */ clsx(["px-2 foo p-4 bar"]); clsx({ "px-2 foo p-4 bar": [ "px-2 foo p-4 bar", { "px-2 foo p-4 bar": "px-2 foo p-4 bar", custom: ["px-2 foo p-4 bar"] }, ], });