# conditionalFormats

Rules changing matching cells' visual properties, such as backgrounds and text. Does not mutate source values.

Canonical: https://grid.syidax.com/docs/options/conditionalFormats/

<a id="meaning"></a>

## What does this API do?

Rules changing matching cells' visual properties, such as backgrounds and text. Does not mutate source values.

<a id="contract"></a>

## Exact input and result types

```typescript
conditionalFormats: ConditionalFormatRule[]
```

| Item | Value |
| --- | --- |
| JavaScript name | conditionalFormats |
| HTML attribute | conditional-formats |
| Default | undefined |
| Input type | ConditionalFormatRule[] |

<a id="usage"></a>

## Usage flow

Set this on a property of the Grid element. Pass arrays, objects, and callbacks through JavaScript, and use new arrays or objects when applying changes.

<a id="types"></a>

## Read related types

- [ConditionalFormatRule](https://grid.syidax.com/docs/types/ConditionalFormatRule.md)

<a id="recipes"></a>

## Feature explanations and examples

- [Conditional formatting](https://grid.syidax.com/docs/features/conditional-formats.md) — Conditional formatting changes visual properties such as background and text color based on a value's meaning. Use it to identify low stock or exceeded targets without changing source values or validation results.
