--- title: AddToCartButton description: |- The `AddToCartButton` component renders a button that adds an item to the cart when pressed. It must be a descendent of the `CartProvider` component. api_version: 2026-04 api_name: hydrogen-react source_url: html: https://shopify.dev/docs/api/hydrogen-react/latest/components/addtocartbutton md: https://shopify.dev/docs/api/hydrogen-react/latest/components/addtocartbutton.md --- Add​To​Cart​Button Not supported in this version.