I'm developing a "columns" component where the user can select the number of "columns" they want to create. Our users find creating nested containers difficult and the idea is to make it easier for them to create more ornate layouts. As an example if they want two columns then they would be able to select a 50/50 setting on the component and have 2 columns each 50% of the total width or they could select the 33/33/33 and have 3 columns of equal width. This layout works well for desktop view, but I'm also trying to automate handling of mobile displays for them so they don't have to modify widths for when the information is displayed on a mobile device.
What is the recommended way to pre-set the component so that on desktop they are next to each other, but on mobile devices they are stacked on top of each other and take full width? If i was doing this within classic jquery bootstrap i would have something along the lines of
for the 33/33/33 for example
<div class="row">
<div class="col-md-4 col-sm-12"></div>
<div class="col-md-4 col-sm-12"></div>
<div class="col-md-4 col-sm-12"></div>
<div>
Where the col-md-4 would take care of anything 768px and larger and the col-sm-12 would be 768 and smaller.