npm i @vasiliyrusin/v-with
import Vue from "vue";
import VWith from "@vasiliyrusin/v-with";
Vue.use(VWith);
import { VWith } from "@vasiliyrusin/v-with";
export default {
name: "ComponentName",
components: { VWith }
}
<template>
<VWith :variables="{ world: 'world' }">
<template #default="{ world }">
Hello, {{ world }}!
</template>
</VWith>
</template>
<script>
import { VWith } from "@vasiliyrusin/v-with";
export default {
name: "ExampleComponent",
components: { VWith }
}
</script>