Custom options outside of cart

Hi guys

I am just starting to use snipcart and and building a store with Sanity. I understand that product variations eg colours and sizes can be added as a data attribute using ‘data-item-custom1-name’ etc. This is great for adding variation selection to the cart. Is there a simple way to also add this to a product page so that a user can select a variant before adding to the cart?

Many thanks for any help.

There’s an example right at the bottom of this support article: Products – Snipcart Documentation