Quantity Selector
<QuantitySelector
dataRef={content.productQuantitySelector}
defaultType="secondary"
defaultValue={1}
minValue={1}
maxValue={20}
/>Attributes
Last updated
Adds a quantity selector to a product:
<QuantitySelector
dataRef={content.productQuantitySelector}
defaultType="secondary"
defaultValue={1}
minValue={1}
maxValue={20}
/>dataRef: DataLocator - the data-element storing the Quantity Selector tag's configuration
defaultType: string - The style of the buttons used with the control: either "primary" or "secondary" (Default: "secondary")
defaultValue: number - The default value for the Quantity Selector (Default: 1)
minValue: number - The minimum value of the Quantity Selector (Default: 1)
maxValue: number - The max value for the Quantity Selector (Default: ∞)
Last updated