Vuetify is a popular UI framework for Vue apps.
In this article, we’ll look at how to work with the Vuetify framework.
The v-btn-toggle
component is a wrapper for v-item-group
that works with v-btn
components.
We can use it to add a group of buttons that can be toggled.
For example, we can write:
<template>
<v-container class="grey lighten-5">
<v-row>
<v-col>
<v-card flat class="py-12">
<v-card-text>
<v-row align="center" justify="center">
<v-btn-toggle v-model="toggle" rounded>
<v-btn>
<v-icon>mdi-format-align-left</v-icon>
</v-btn>
<v-btn>
<v-icon>mdi-format-align-center</v-icon>
</v-btn>
<v-btn>
<v-icon>mdi-format-align-right</v-icon>
</v-btn>
<v-btn>
#javascript #web-development #programming