Counter 2 - Counter with initial value

Basic

Counter button starting at 5 with custom min/max bounds.

Shadcn Counter 2 component

Component data

ID
counter/counter-2
Access
basic
Created
May 23, 2026
Type
example
Libraries
Radix UI, Base UI, React Aria

Counter 2 component design & features

Counter initialized at 5 with min=1 and max=10. The plus/minus buttons disable at bounds.

Shows configurable limits for bounded inputs like quantity pickers or rating selectors.