Components
Number Stepper
Number steppers let the user enter a numeric value with increment and decrement controls.
Stable
GitHubEnter a value between 0 and 10.
Anatomy
Anatomy
import {NumberStepper} from '@staffbase/design';
<NumberStepper.Root>
<NumberStepper.Decrement />
<NumberStepper.Input />
<NumberStepper.Increment />
</NumberStepper.Root>API reference
Root
Inherits props fromBase UI Number Field Root
Increment
Inherits props fromBase UI Number Field Increment
Decrement
Inherits props fromBase UI Number Field Decrement
Input
Inherits props fromBase UI Number Field Input
When to use
1–10 Slides
When not to use
How to use
Structure
Range & steps
5–60 Seconds per Slide
Between −5 and 5 degrees
Validation
1–10 Slides
Input a number between 1–10.
Layout & sizing
Do
1–10 Slides
Keep the default width so the buttons stay next to the value.
Don't
1–10 Slides
Stretching the stepper to full width pushes the buttons away from the value.