Numeric Stepper

Numeric steppers allow users to incrementally adjust numerical values using button controls and direct input

stepper/styleImage

Resources

Intro & Anatomy

Numeric steppers allows users to adjust numerical values through increment/decrement buttons or direct input.

Use numeric steppers for controlled number entry where users need to select from a specific range, e.g. quantity selection, age input, or pagination controls.

The component consists of MDX icon buttons for increment/decrement actions paired with a custom number input field.

stepper/anatomy

 


 

Options & Styles

Content

MDX icon buttons provide increment and decrement functionality with clear visual controls.

Custom number input allows direct numerical entry and displays the current value.

stepper/content

Sizes

MDX numeric steppers come in two sizes: Small and medium for different interface requirements.

stepper/size

States

Numeric steppers provide visual feedback through multiple states:

Default for standard input appearance
Hover for interactive feedback when users engage with the stepper
Error for validation failures requiring user attention

stepper/states

Disabled

Disabled numeric steppers show when value adjustment isn't currently available, though we recommend avoiding disabled states when possible.

stepper/disabled

 


 

Best Practice & Usage

Numeric steppers should be used for controlled numerical input with clear boundaries and appropriate default values. Always provide labels and set reasonable limits for optimal user experience.

stepper/do
stepper/dont
stepper/do2
stepper/dont2
stepper/do3
stepper/dont3
stepper/do4
stepper/dont4

 


 

Theming

You can customise colours, border width and radius, font styles and weights, spacings and sizes to match your design requirements.