Vue3 use v-bind in style tag

·

1 min read

Style

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

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