Number

A numeric input field with increment/decrement controls.

The Number field allows users to enter numeric values using either the keyboard or spinner buttons (up/down arrows). This field automatically validates that only numbers are entered, preventing invalid input. It’s useful for any numeric value like counts, sizes, dimensions, or quantities. The value is stored as a number type, making it easy to use in calculations or comparisons.

Preview in Attributes Manager

Fancoolo fields number

Number field. Preview in Gutenberg Editor

Fancoolo fields in gutenberg number

Technical Information:

PropertyValue
Gutenberg UINumber input with spinner
Data Typenumber
Default Value0
Best ForNumeric values without constraints
Common UsesCounts, quantities, dimensions, sizes
PHP Usage<?php echo intval($attributes['fieldName']); ?>
ValidationUse intval() or floatval() depending on needs