Skip to content

@checkout-kit/ui / cx

Variable: cx ​

ts
const cx: (...values) => string;

Joins class names. Not clsx, not tailwind-merge: the kit ships plain classes that never conflict, so a dependency to resolve conflicts would earn its weight in nothing.

Takes anything, so cond && "x" works whatever cond is.

Parameters ​

ParameterType
...valuesunknown[]

Returns ​

string

Apache-2.0 · Headless engine, provider adapters and runnable examples.