v-chip
component is used to convey small pieces of information. Using the close
property, the chip becomes interactive, allowing user interaction. See documentation. <div class="text-center">
<v-chip
class="ma-2"
>
Default
</v-chip>
<v-chip
class="ma-2"
color="primary"
>
Primary
</v-chip>
<v-chip
class="ma-2"
color="secondary"
>
Secondary
</v-chip>
<v-chip
class="ma-2"
color="red"
text-color="white"
>
Red Chip
</v-chip>
<v-chip
class="ma-2"
color="green"
text-color="white"
>
Green Chip
</v-chip>
</div>
Any color from the Material Design palette can be used to change a chips color.
<div class="text-center">
<v-chip
class="ma-2"
color="success"
outlined
>
<v-icon left>mdi-server-plus</v-icon>
Server Status
</v-chip>
<v-chip
class="ma-2"
color="primary"
outlined
pill
>
User Account
<v-icon right>mdi-account-outline</v-icon>
</v-chip>
<v-chip
class="ma-2"
color="deep-purple accent-4"
outlined
>
<v-icon left>mdi-wrench</v-icon>
Update Settings
</v-chip>
<v-chip
class="ma-2"
close
color="indigo darken-3"
outlined
>
<v-icon left>mdi-fire</v-icon>
New Posts Available
</v-chip>
</div>
Outlined chips inherit their border color from the current text color.
Chips can use text or any icon available in the Material Icons font library.
<div class="text-center">
<v-chip
class="ma-2"
label
>
Label
</v-chip>
<v-chip
class="ma-2"
color="pink"
label
text-color="white"
>
<v-icon left>mdi-label</v-icon>
Tags
</v-chip>
<v-chip
class="ma-2"
color="primary"
label
>
<v-icon left>mdi-account-circle-outline</v-icon>
Sean Paul
</v-chip>
<v-chip
class="ma-2"
close
color="cyan"
label
text-color="white"
>
<v-icon left>mdi-twitter</v-icon>
New Tweets
</v-chip>
</div>