Skip to content

Search the guides, deployment pages, and API reference.

ClassValue

import type { ClassValue } from "@pitlane/theme";
type ClassValue =
| string
| number
| null
| undefined
| false
| readonly ClassValue[]
| Record<string, boolean | null | undefined>;

A value cx accepts: a string, a number, a nested array of the same, or a record whose truthy keys are emitted. null, undefined, and false are dropped. Compatible with clsx.