I need to center the v-switch
element inside a v-flex
horizontally, but my attempts based on guidance from this post on vuetify center items into v-flex have been unsuccessful for the v-switch
element.
Even when I wrap it in a div with a class like below:
<v-flex xs12 md2 >
<div class="text-xs-center">
<v-switch
@click="someFunction()"
label="Some Label Name"
color="black"
value="secondary"
hide-details
></v-switch>
</div>
</v-flex>
Or when I apply a class directly within the v-flex
:
<v-flex xs12 md2 text-xs-center>
No method seems to be working. Even using other classes such as class="justify-center"
has not yielded desired results.
For a clearer understanding of the issue, you can refer to this codepen.
Can someone please guide me on the correct approach?