Answer the question
In order to leave comments, you need to log in
How to import vue component with custom parameters?
There is a small project with components/progressBar (or card).
codesandbox.io
<template>
<div class="hello">
<b-card :bg-variant="color" text-variant="white" header="Primary" class="text-center">
<b-card-text>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</b-card-text>
</b-card>
</div>
</template>
<script>
export default {
name: "Card",
props: ['color'],
data() {
return {
};
},
};
</script>
:bg-variant="color"
<Card :variant="color"/>
Answer the question
In order to leave comments, you need to log in
props: ['color'], !!!
<Card :color="color"/>
<Card color="#f00"/>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question