# quantity-input

> Number input with plus and minus buttons for a quantity. In a product, min, step and max come from the variant's quantity rules: Shopify's (B2B catalogs) together with the Smootify purchase rules (2.0, HQ #68), max from the stock without a rule maximum; a quantity the rules refuse moves to the nearest they take.

Status: Ready (Smootify 2.0)  
URL: https://www.smootify.io/docs/astro/reference/elements/quantity-input  
Updated: 2026-10-21

## Where it can go

- **Inside any of:** [`smootify-product`](https://www.smootify.io/docs/astro/reference/elements/smootify-product), [`cart-item`](https://www.smootify.io/docs/astro/reference/elements/cart-item).
- **Must contain** `input`.
- **Out of place,** Smootify removes it from the page: without an input; elsewhere its buttons only step it.

## What it requires

Nothing beyond Smootify: it works on every plan.

## Attributes on the element

- **It reads** `data-disable-max`.

## Attributes inside it

| Group | Attribute name | Values |
|---|---|---|
| [Quantity](https://www.smootify.io/docs/astro/reference/attributes/quantity) | `data-action` | 2 |

## Loading

Defined at boot on every page.
