In WooCommerce, you can define product attributes, such as size or color, to use be used as product options. Start by navigating to Products → Attributes.
For example an attribute could be “Size“.
Then you need to Configure its terms. Those would be “Small, Medium, Large“.
Once defined, these global attributes can be assigned to your variable products.
You can read more on setting up variable products in the WooCommerce Documentation .