Number Field

This is an advanced-use feature, and likely not something you'll need to configure. What you probably want is the content types reference!

The number field represents a number input.

Options

REQUIRED
component
'number'

The name of the plugin component. Always 'number'.


REQUIRED
name
string

The path to some value in the data being edited.


label
string

A human readable label for the field. Defaults to the name.


description
string

Description that expands on the purpose of the field or prompts a specific action.


step
string | number

The interval used when using the up and down arrows to adjust the value.

All properties marked as REQUIRED must be specified for the field to work properly.

This interfaces only shows the keys unique to the number field. Visit the Field Config docs for a complete list of options.

Example: A Sorting Weight

Below is an example of how a number field could be used to edit a weight value used for sorting blog posts.