[Vuejs]-V-checkbox with svg icon from local

0👍

You can use your class with svg background like this

.icon-checkbox-on {
   background-image: url(some-on.svg)
}
.icon-checkbox-off {
   background-image: url(some-off.svg)
}

And type this class into props

<v-checkbox
    off-icon="icon-checkbox-off"
    on-icon="icon-checkbox-on">
</v-checkbox>

It works for me.

Leave a comment