Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.5.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