I use Vuetify. I like to have in the label the text "Target m²"
I tried with <sup>2</sub> but it doesn't work
<v-text-field
label="Target (in m<sup>2</sup>)"
v-model="form.target" :error-messages="errors.target" >
</v-text-field>
How can I i superscript in the label?
You could use named slot label :
<v-text-field v-model="form.target" :error-messages="errors.target" >
<template #label>
<label>Target (in m<sup>2</sup>)</label>
</template>
</v-text-field>
please check this example
PS : #label is a shorthand of v-slot:label
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With