Number field.
Accepts a numeric quantity with optional bounds and steps.
See it in context
What it is
Numeric entry supports exact values and may provide increment controls. It suits quantities that have arithmetic meaning, rather than digit strings such as postal codes.
When to use it
Show units and enforce meaningful minimum, maximum, and step values.
Know the difference
A telephone number or identifier is a string of digits, not an arithmetic quantity.
Across platforms
Web
Use a labeled native input and its appropriate type, inputmode, and autocomplete hints. Browser presentation and the available autofill UI vary.
iOS · iPadOS · Android
Choose the keyboard and content type for the value being entered. Keep the field visible above the on-screen keyboard and preserve the user’s selection.
macOS · Windows · Linux
Support ordinary keyboard editing, selection, paste, and undo. A desktop field should not depend on a touch-only accessory keyboard.
Go to the source
Primary documentation for the pattern and its platform conventions.