I'm working on a component in VueJs and I want to make a color attribute that take hexadecimal color and convert into rgb color with rgba function of sass and work with it.
props: {
color: {
type: String,
default: '#195cff'
}
}
I tried to do it like this:
$color: v-bind(color);
input {
background: rgba($color, 0.5);
}
But I think v-bind is not accessible in sass variable. How can I do this work.
style