Align elements to sides in vuetify3 block button: guide
P粉680000555
2023-08-30 09:59:30
<p>Suppose I have the following button: </p>
<pre class="brush:php;toolbar:false;"><v-btn block size="x-large">
<v-btn icon size="small" variant="contained">
<v-icon>mdi-information</v-icon>
</v-btn>
Button Text
<v-icon>mdi-check</v-icon>
</v-btn></pre>
<p>The icons on the left and right are sandwiched with the text. How can I place them on the right and left edges of the button respectively? I've tried using <code>v-spacer</code>s but it doesn't work. I also tried using <code>v-row</code> in the button, but that didn't help as the items became even more misaligned. </p>
You can align items horizontally using the
justify
property.Live Demo: