Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/fresh/plugins/twindv1_deps.ts>cx

The next-gen web framework.
Extremely Popular
Go to Latest
function cx
import { cx } from "https://deno.land/x/fresh@1.7.1/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