Get your own Vue server
App.vue
InfoBox.vue
GrandChild.vue
main.js
 
<template>
  <div>
    <h4>Grand Child Component</h4>
    <p v-if="$props.bagOwner">Your name is <span>{{ $props.bagOwner }}</span>.</p>
    <p v-if="$props.bagWeight">Your bag weighs <span>{{ $props.bagWeight }}</span> kg.</p>
  </div>
</template>

<script>
export default {
  props: [
    'bagOwner',
    'bagWeight'
  ]
}
</script>

<style scoped>
div {
  border: solid black 1px;
  padding: 10px;
  max-width: 250px;
  box-sizing: border-box;
}
span {
  background-color: lightgreen;
  padding: 0 10px;
}
</style>                  
http://localhost:5173/