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

Number field. Preview in Gutenberg Editor

Technical Information:
| Property | Value |
|---|---|
| Gutenberg UI | Number input with spinner |
| Data Type | `number` |
| Default Value | `0` |
| Best For | Numeric values without constraints |
| Common Uses | Counts, quantities, dimensions, sizes |
| PHP Usage | `` |
| Validation | Use `intval()` or `floatval()` depending on needs |