How to add size selector for ecommerce app

Hi. How do I add size selector for my clothing ecommerce app, im creating a multi vendor clothing ecommerce app. I dont know how to implement size selector for customers and then send the selected size into the add to cart . I also want the vendor who posts the products to be able to input the sizes he has. Please help with an example codem