ItemCounterButton
A compact stepper control with minus/plus buttons and a quantity display. Used for adjusting item quantities in the cart and modifier option counts.Preview
View in StorybookImport
Usage
Props
The current quantity value.
Callback fired when the plus button is clicked.
Callback fired when the minus button is clicked.
Minimum allowed value. Decrement button is disabled at this value.
Maximum allowed value. Increment button is disabled at this value.
Behavior
- Disables minus button when count reaches
min - Disables plus button when count reaches
max - Animates the count value on change
- Compact variant available for inline use in modifier options