The quantity input allows a customer to select the amount of product they want to purchase. It consists of an input element and two buttons.

<aside> ℹ️ Usually, styling this element takes from-to: 3-5h

</aside>

Where this element can be seen?

A quantity input is a common element for the e-commerce site. It can be found on the following elements:

CEDFA0D0-AB48-4038-BDE7-66EA8DF42CD9_4_5005_c.jpeg

How should this element be designed?

The quantity input should be displayed in the following states:

Untitled

Please account for the following:

Design Example 1

Design Example 2

How to develop styles for this element?

The Field component of type FIELD_TYPE.number is responsible for rendering the quantity input. It consists of input with a type number and two buttons.

To style quantity input it is recommended to move style to Field.override.style.scss by creating related mixin to lower nesting level.

In the scope of this task AddIcon and MinusIcon components possibly should be modified to match provided designs.

Implementation example #1

Implementation example #2

<aside> ➡️ Taking some examples from the previous projects, the fact, that ScandiPWA version possibly will be different, should be taken into consideration

</aside>