Skip to content

Number input

The number input allows users to enter and modify a numeric value with an optional unit.

Usage

The component includes + / - controls to increment or decrement the value in predefined steps. It acts as a high-level alternative to the native number input control.

Number input

When to use

  • To enter a numeric value in a form or inline in a component.
  • When a user needs precise control over a numeric value.

Best practices

  • Define the width of the number input field according to the maximum value and the grid system.
  • Offer a smart default value whenever possible.
  • When precision is not important, use a slider instead.

Except where otherwise noted, content on this site is licensed under MIT License.