[**@wocart/theme v4.1.0**](../../README)

***

[@wocart/theme](../../README) / [index](../README) / isFieldVisible

# Function: isFieldVisible()

> **isFieldVisible**(`field`, `values`): `boolean`

Whether an editor shows `field`, given the current values of the fields
beside it — what is stored, else the default. A field with no value
compares as `null`.

## Parameters

### field

[`FieldDefinition`](../type-aliases/FieldDefinition)

### values

`Readonly`\<`Record`\<`string`, `unknown`\>\>

## Returns

`boolean`
