Skip to main content

QuantitySelector

A component with increment and decrement buttons for adjusting quantities.

Anchor to maxQuantity
maxQuantity
number
required

Maximum allowed quantity

Anchor to onQuantityChange
onQuantityChange
(quantity: number) => void
required

Callback when quantity changes

Anchor to quantity
quantity
number
required

Current quantity value

Anchor to disabled
disabled
boolean

Whether the selector is disabled

Anchor to minQuantity
minQuantity
number

Minimum allowed quantity (default: 1)


Was this page helpful?