I'm doing my first "mobile-first" approach to an app (normally started at desktop and worked my way down in the past using CSS Media queries) and wondering what is the best way to handle the following scenario in today's responsive dev landscape:
I have a component like so:
<b-form-spinbutton id="sb-vertical" v-model="value" inline></b-form-spinbutton>
I want the above component to only show when devices are below a certain breakpoint (lets say below 720px).
Then, any viewport bigger than that I want to show the following component:
<b-form-spinbutton id="sb-vertical" v-model="value" vertical></b-form-spinbutton>
Notice the vertical and inline props in the above codes.
Are these best left to the traditional CSS Media queries or are we able to use template conditionals (ie, v-if? etc) .
I figured I'd get a consensus because I am going to build my app from the ground up based on any feedback received to this quesiton. Thank you!