<div class="quantity-switcher--dark">
<button type="button" class="quantity-switcher__minus">
<span class="quantity-switcher__minus-content">–</span>
</button>
<input class="quantity-switcher__quantity" type="number" id="quantity-1430555538" min="1" max="99" name="qty" value="5" data-test="Yes" />
<label class="visually-hidden" for="quantity-1430555538">Quantity</label>
<input type="hidden" name="productId" value="abcdefghijk-123" />
<button type="button" class="quantity-switcher__plus">
<span class="quantity-switcher__plus-content">+</span>
</button>
</div>
{% include '@SharedComponents/modules/shared/components/form-components/quantity-switcher/quantity-switcher.twig' %}
{
"quantity": {
"id": "quantity",
"name": "qty",
"label": "Quantity",
"min": "1",
"max": "99",
"value": "5",
"required": false,
"disabled": false,
"autocomplete": "",
"attributes": {
"data-test": "Yes"
}
},
"identifier": {
"name": "productId",
"value": "abcdefghijk-123"
},
"variant": "dark"
}
import QuantitySwitcherMediator, {name as title} from 'cando-cx-components-library/components/modules/shared/components/form-components/quantity-switcher/quantity-switcher-mediator';
export default QuantitySwitcherMediator;
export const name = title;
import QuantitySwitcherTooltip, {selector as sel} from 'cando-cx-components-library/components/modules/shared/components/form-components/quantity-switcher/quantity-switcher-tooltip';
export default QuantitySwitcherTooltip;
export const selector = sel;
import './quantity-switcher.scss';
import QuantitySwitcher, {selector as sel} from 'cando-cx-components-library/components/modules/shared/components/form-components/quantity-switcher/quantity-switcher';
export default QuantitySwitcher;
export const selector = sel;
@import "~shared/base";
@import "~cando-cx-components-library/components/modules/shared/components/form-components/quantity-switcher/quantity-switcher";
No notes defined.