Skip to main content

Quantity Controls

The QuantityControls component provides an interactive interface for managing quantities.

Example

1

Props

QuantityControls Props

PropertyDescriptionValues
classNameCustom CSS classes for styling the containerString
valueThe initial value for the quantityNumber
onQuantityChangedCallback triggered when the quantity changesFunction
maxMaximum allowed value for the quantityNumber
minMinimum allowed value for the quantityNumber
debounceWhether to debounce the onQuantityChanged callbackBoolean
delayDelay time in milliseconds for debouncingNumber

Customization

The approach for customization will vary depending on if the customization is intended to be global for all consumers of the UI component or if it is only an override for a particular instance.

  • If the customization is necessary for all use cases, update the component source code in the UI library package directly.
  • Otherwise, pass className overrides. Class overrides can be applied to all sub-components.