---
title: "Discussion on \"Vue3 use v-bind in style tag\" | Hashnode"
description: "Discussion on \"Vue3 use v-bind in style tag\". Style\n<script setup lang=\"ts\">\nconst color = ref(\"red)\n</script>\n\n<style scoped>\n.text {\n    color: v-bind('color')\n}\n</style>"
url: "https://hashnode.com/posts/vue3-use-v-bind-in-style-tag/61b662ad0059f90a57a56155"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Vue3 use v-bind in style tag](https://hn.0xbf.me/vue3-use-v-bind-in-style-tag?utm_source=hashnode&utm_medium=feed)

Style <script setup lang="ts"> const color = ref("red) </script> <style scoped> .text { color: v-bind('color') } </style>

Dec 12, 2021 · 1 min read · hn.0xbf.me  
Read the article

-   [#vuejs](https://hashnode.com/tag/vuejs)

## Written by

[0xBF](https://hashnode.com/@0xbf)

@0xbf

  
[View profile](https://hashnode.com/@0xbf)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
