0xBF
0xBF

0xBF

\n\n","datePublished":"2021-12-12T20:59:25.723Z","isAccessibleForFree":true,"author":{"@type":"Person","name":"0xBF","url":"https://hashnode.com/@0xbf"},"publisher":{"@type":"Organization","name":"0xBF","url":"https://hn.0xbf.me","logo":"https://hashnode.com/utility/r?url=https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1559814205701%2Fek9fO-yT0.jpeg%3Fw%3D800%26bm%3Dnormal%26balph%3D100%26txt64%3DMHhCRg%26txtsize%3D42%26txtfit%3Dmax%26txtalign%3Dmiddle%2Ccenter%26txtfont%3DHelvetica%20Neue%2CBold%26txtclr%3Dffffff%26blend%3D4a47a3"}}

Vue3 use v-bind in style tag

0xBF's photo
0xBF
·Dec 12, 2021·

1 min read

Style

<script setup lang="ts">
const color = ref("red)
</script>

<style scoped>
.text {
    color: v-bind('color')
}
</style>
 
Share this