Build a quantity stepper! Two buttons adjust an order quantity, and the stepper refuses to go outside its allowed range.
The component must render a <button> with the class decrease labeled -, a <span> with the class quantity, and a <button> with the class increase labeled +.
The span text must be exactly Quantity: N, where N is the current quantity. The quantity starts at 1, may never drop below the minimum of 1, and may never rise above the maximum of 5.
Both buttons must also disable themselves at the edges of the range: the decrease button is disabled whenever the quantity is 1, and the increase button is disabled whenever the quantity is 5. Bind those through getters — disabled={isAtMinimum} and disabled={isAtMaximum} — because LWC templates cannot evaluate expressions inline.
Examples:
Initial render:
<button class="decrease" disabled>-</button>
<span class="quantity">Quantity: 1</span>
<button class="increase">+</button>
Click + -> span shows: Quantity: 2, and the - button is no longer disabled
Click + repeatedly -> span stops at: Quantity: 5, and the + button becomes disabled
Click - -> span goes back down one step, never below Quantity: 1