---
title: "ClassValue"
description: "A value [cx](https://pitlane.tools/package/theme/function/cx.md) 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."
url: "https://pitlane.tools/package/theme/type/ClassValue"
---

# ClassValue

```ts
import type { ClassValue } from "@pitlane/theme";
```

```ts
type ClassValue =
  | string
  | number
  | null
  | undefined
  | false
  | readonly ClassValue[]
| Record<string, boolean | null | undefined>;
```

A value [cx](https://pitlane.tools/package/theme/function/cx.md) 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.
