Moussa Nassour
Moussa Nassour

Reputation: 1

Vue3 js v-bind css tailwind conditionally based on status value

I have a status property that can change and I need to change CSS tailwind each time that value changes using v-bind :class on vue3 3 how to achieve so ?

Upvotes: 0

Views: 901

Answers (1)

Freezy
Freezy

Reputation: 323

You could do something like this

<div :class="{ 'tailwind-class': status }">

Upvotes: 2

Related Questions