RRigdesign system
Data display

Counter

A numeric stepper with clear states, for quantities such as seats.

Examples

Medium · decrease disabled at the minimum
Seats3
0

Anatomy

Counter anatomy
#PartDescriptionPresence
1Decrease44px buttonRequired
2Value<output>, announced politelyRequired
3Increase44px buttonRequired

Specifications

Default sizeMedium
ThemesLight · Dark

Interaction

Keyboard
KeyResult
TabMoves between decrease and increase
Enter SpaceSteps the value
HoldOptional: repeats after 400ms
Pointer and touch
TriggerResponse
ClickSteps by one
At limitThe button disables, with a text reason nearby

Accessibility

role · group with a live value

1.3.1Info and Relationships4.1.2Name, Role, Value4.1.3Status Messages
Requirements
RequirementHow Rig meets it
NamesButtons say what they change: Decrease seats
Announcementaria-live="polite" on the value
Direct inputIf large numbers are common, use a number input instead

Read the matching WAI pattern ↗

Usage

Do and don’t
DoDon’t
Disable at the minimum and maximumDo not use for ranges (use Slider)