Guidelines
When to use
- To enter a non-formatted numeric value: The Stepper component is suitable for requesting a specific number e.g. number of guests, rooms, days.
- When negative values are accepted: By setting a negative minimum value users can easily adjust the value with the buttons, without the need to type in the minus sign.
- When we require values with an increment step different to 1: If you require numbers that are incrementing less or more than 1, set the increment step accordingly and disable the manual input to avoid errors.
When not to use
- When the value is required in a specific format: Don’t use Stepper for phone numbers, postal codes, credit card numbers, etc.
- When a suffix with unit is required: The Stepper component is not suitable to display a suffix. If it is required for a unit, use a Text Input instead.*
Sizes
![Stepper / Usage / Variants / Small](https://studio-assets.supernova.io/design-systems/27394/f6f93c93-6137-43b3-8f54-4096d6e5982b.png)
![Stepper / Usage / Variants / Medium](https://studio-assets.supernova.io/design-systems/27394/30543411-ca5a-4b43-ad06-25c5b02aa366.png)
![Stepper / Usage / Variants / Large](https://studio-assets.supernova.io/design-systems/27394/4a838193-7729-4493-952d-ce451989532d.png)
![Stepper / Usage / Variants / Extra Large](https://studio-assets.supernova.io/design-systems/27394/683c49f8-21ae-4bda-95a6-b5114c144594.png)
Item |
Size |
Placement |
---|---|---|
1 |
Small |
Use sparingly, in areas with a high UI density. The example is within an availability room table. Owing to its dimensions, it is not recommended for use on mobile devices. |
2 |
Medium |
Use as a default, especially in forms displaying in Floating Panel and Dialog. |
3 |
Large |
Use in full page forms. |
4 |
Extra large |
Use in touch devices as it offers an increased tap area. |
Behavior
Mouse Interactions
![Stepper / Usage / Mouse Interactions](https://studio-assets.supernova.io/design-systems/27394/dc72f922-5742-4948-aa76-084f6c40196f.png)
There are two ways for the user to adjust the numerical value in the Stepper.
- Clicking inside the input and typing a number.
-
Clicking the Minus or Plus Buttons. Each click decreases/increases the value by the defined step amount. The value is adjusted continuously as long as the button is pressed, allowing for quick adjustments to big deviations from the default value.
Keyboard interactions
Key |
Interaction |
---|---|
Tab |
Sets focus on the input. |
1/2/3/4/... |
Changes the value |
Arrow up |
Increases the value by the defined step amount. The value is adjusted continuously as long as the arrow up key is pressed. |
Arrow down |
Decreases the value by the defined step amount. The value is adjusted continuously as long as the arrow down key is pressed. |
Content
Default value
The Stepper Component always comes with a predefined default value. If possible, use a number closest to the average value to minimize the effort for the users.
![Do](https://studio-assets.supernova.io/design-systems/27394/70c08e22-f1f1-4c6c-825d-08ec2ba274db.png)
![Don't](https://studio-assets.supernova.io/design-systems/27394/dbbcc149-931f-4922-961f-c6532c131827.png)