The `MinimumRequirementsCard` enables a user to set the minimum subtotal or quantity for an automatic discount, or subtotal, quantity, or "no minimum" for code discounts. ## Example code ```jsx?title:'MyApp.jsx' import React, { useState } from "react"; import { AppliesTo, DiscountMethod, RequirementType, MinimumRequirementsCard, } from "@shopify/discount-app-components"; import { CurrencyCode } from "@shopify/react-i18n"; function MyApp() { const [requirementType, setRequirementType] = useState(RequirementType.None); const [subtotal, setSubtotal] = useState(""); const [quantity, setQuantity] = useState(""); return ( ); } ``` ## Properties |Name|Type|Description|Required| |---|---|---|---| |requirementType|`Field`|The field that controls the selected requirement type (none, minimum amount, or minimum quantity)|Yes| |subtotal|`Field`|The field for the subtotal minimum requirement.|Yes| |quantity|`Field`|The field for the quantity minimum requirement.|Yes| |discountMethod|`DiscountMethod`|The discount method of the current discount (either `code` or `automatic`).|Yes| |appliesTo|`AppliesTo`|Renders a string describing what entity the minimum requirements apply to (collections, selected products, or all products).|Yes| |currencyCode|`CurrencyCode`|The currency code that should be used to format the input value|Yes| |isRecurring|`boolean`|Whether the discount supports selling plans and adds selling plan specific language.|No| ## AppliesTo |Name|Value|Description| |---|---|---| |Collections|`COLLECTIONS`|Applies to products in a collection.| |Order|`ORDER`|Applies to the entire order.| |Product|`PRODUCT`|Applies to specific products or variants.| ## RequirementType |Name|Value|Description| |---|---|---| |None|`NONE`|No requirements. (default)| |Subtotal|`SUBTOTAL`|Applies to cart subtotal amount.| |Quantity|`QUANTITY`|Applies to product quantities.|