Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/frugal/docs/dep/frugal/styled.ts>cx

A frugal web framework
Go to Latest
function cx
import { cx } from "https://deno.land/x/frugal@0.5.0/docs/dep/frugal/styled.ts";

generates a className string from a list of string and Rules. This function is able to skip "empty" values (undefined or null). This function also handle booleans, enabling constructs like boolean && rule.

Parameters

...classNames: CX[]

Returns

string