Quantity Number
Displays the currently selected quantity from the variant store as a read-only value.
APQuantityNumber shows the currently selected quantity from the variant store. It is the display-only counterpart to APQuantityIncrementer and AP_QuantityDecrement.
What it does
- Reads the active quantity from the variant/store state.
- Renders the quantity as text without providing any interaction.
- Keeps the displayed value in sync with changes from APQuantityIncrementer and APQuantityDecrement.
How to set it up
- Place AP_QuantityNumber between AP_QuantityDecrement and AP_QuantityIncrementer in your quantity selector layout.
- Use the Font, Color, Min Width, and Align controls to match your design system.
- In the editor, toggle Show live in Canvas to preview the real store quantity, or use Canvas value for a fixed preview.
Key behaviours
- Acts purely as a visual representation of the current quantity.
- Respects minimum width to avoid layout shift as numbers change.
- Alignment and typography can be customized to fit different layouts.