Good fit for
- Product detail
- Checkout
- Customer accounts
This purchase actions pattern works best when its purpose is clear in the surrounding page hierarchy.
Open experiment
Pulls the product token into a cart target while updating quantity and total. Activation animates a contained product token, increments the cart badge, and announces the total. Connects purchase action to a persistent cart destination rather than only changing button text.
Implementation field notes
The preview and source are only the starting point. Use these notes to decide where the component fits, preserve its accessibility contract, and verify the adapted result.
This purchase actions pattern works best when its purpose is clear in the surrounding page hierarchy.
Related learning
Related research