I have some problems implementing props in style tag. I have props like:
props: {
icon: {
type: String,
required: true
},
label: {
type: String,
required: true
}
}
And I want to use label props in Style, like:
<style scoped lang="scss">
.class{
color: label;
}
</style>
is that possible? Because it's not working like this
Idea is actually to make a call like:
.drop-color{
color: map-get($var, label);
}
This will work if I define it as;
.drop-color{
color: map-get($var, 'blue');
}
I just need to pass prop label instead.