Skip to main content
The Number block (integer in the schema, labeled Number in Studio) is for mathematical and quantitative data. Prefer it over Text input when you need numeric keyboards, min/max bounds, and clean analytics. For stepping UI, use Number stepper. For money, use Currency.

Business Use Cases

Age Gates

Ask for a user’s age and strictly enforce a minimum limit (e.g., must be > 18).

Financial Inputs

Collect salary expectations or donation amounts using float (decimal) steps.

Inventory Quantities

Use the built-in stepper buttons (+ and -) to let users quickly adjust order quantities.

Configuration & Usage

1

Deploy to Canvas

Drag the Number block from the Component Catalog onto the Canvas.
2

Configure Boundaries

Define the Minimum and Maximum values. For example, if you are asking for “Age”, set the minimum to 18 to legally restrict submissions.
3

Allow decimals (optional)

By default Number accepts whole numbers only. Enable Allow decimals when you need fractional values (e.g. weight). Adjust Step if you use a stepper UI.

Technical Configuration Schemas

string
default:"md"
The visual size of the number stepper field. Available options are sm, md, and lg.
string
Customizes the heroicon used for the + (increment) button on the stepper.
string
Customizes the heroicon used for the - (decrement) button on the stepper.

Data Payload Architecture

The Number block guarantees that the data saved is a true programmatic number type, not a string masquerading as a number. This is crucial for APIs that expect strict types.

Deep Dive: When NOT to use the Number Block

It is a common mistake to use the Number block for things that look like numbers but are actually identifiers. Do NOT use the Number block for:
  • Phone Numbers
  • Zip / Postal Codes
  • Credit Card Numbers
  • Social Security Numbers
The Rule of Thumb: If you would never add, subtract, or multiply the data, it is not a Number. Use a Short Text Block with a Custom Mask instead!

Best Practices & FAQs

By default the Number block accepts whole numbers only. Turn on Allow decimals in the block settings when you need fractional values (e.g. weight 12.5). For money amounts, prefer the Currency block instead.
If you don’t want the + and - buttons appearing inside the input (e.g., for collecting Salary), simply leave the increment_icon and decrement_icon blank, and standard browsers will hide them.
Last modified on September 7, 2026