Skip to main content
Module

x/fresh/plugins/twindv1_deps.ts>cx

The next-gen web framework.
Extremely Popular
Latest
function cx
import { cx } from "https://deno.land/x/fresh@1.6.8/plugins/twindv1_deps.ts";

Constructs class strings conditionally.

Twinds version of popular libraries like classnames or clsx. The key advantage of cx is that it supports twinds enhanced class name syntax like grouping and aliases.

Parameters

...input: Class[]

Returns

string