cx()
Compose class names with conditional logic (static).
Signature
Section titled “Signature”function cx(...args: ClassValue[]): stringParameters
Section titled “Parameters”Accepts strings, falsy values, or objects with boolean values.
Examples
Section titled “Examples”import { cx, div } from "@whisq/core";
div({ class: cx("btn", isPrimary && "btn-primary", isLarge && "btn-lg") })div({ class: cx("card", { active: true, disabled: false }) })// Result: "card active"