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

***

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

# Interface: NumberFieldDefinition

`number`: a finite number, optionally bounded. With `step`, a value must lie
on the grid that starts at `min` (or 0) — Shopify's `range`; an editor may
show a slider.

## Extends

- `FieldDefinitionBase`

## Properties

### default?

> `optional` **default?**: `number`

***

### description?

> `optional` **description?**: [`LocalizedText`](../type-aliases/LocalizedText)

Editor-facing help text.

#### Inherited from

`FieldDefinitionBase.description`

***

### display?

> `optional` **display?**: `"input"` \| `"slider"`

How an editor shows it: a box to type in (default) or a slider, which needs `min`, `max` and `step`.

***

### key

> **key**: `string`

The exact prop name the component expects.

#### Inherited from

`FieldDefinitionBase.key`

***

### kind

> **kind**: `"number"`

***

### label

> **label**: [`LocalizedText`](../type-aliases/LocalizedText)

Editor-facing name, the same in every language or translated.

#### Inherited from

`FieldDefinitionBase.label`

***

### max?

> `optional` **max?**: `number`

***

### min?

> `optional` **min?**: `number`

***

### required?

> `optional` **required?**: `boolean`

#### Inherited from

`FieldDefinitionBase.required`

***

### step?

> `optional` **step?**: `number`

***

### visibleIf?

> `optional` **visibleIf?**: [`FieldCondition`](../type-aliases/FieldCondition)

When an editor shows the field; absent: always. The renderer ignores it.

#### Inherited from

`FieldDefinitionBase.visibleIf`
