Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set HTML in v-radio label

I've checked the documentation for v-radio components but didn't found a way to set the label with HTML in it. Does anyone know if there is a way to do so?

<v-radio  label="Some <b>text</b>" value="some-value"></v-radio>
like image 387
Ale Avatar asked Jan 01 '23 17:01

Ale


1 Answers

There is a label slot for this.
So do NOT use prop if you need html label.

codepen

<v-radio value="radio-1">
  <template slot="label">
    Vuetify is actually&nbsp;<b>Awesome</b> 
  </template>
</v-radio>
like image 51
Traxo Avatar answered Jan 13 '23 14:01

Traxo