Dynamic selector for Svelte Components. Great for creating dynamic pages. Through some form of interaction, for example Loop, a page can be created dynamically. It can be used for a dynamic editor or even through a Json file.
Just install the dependency and start using
npm i requite-svelte or yarn add requite-svelte
After installing the dependency, just import the components you need
import Requite from "./requite-svelte";
<script>
import Header from "./Header.svelte";
import Button from "./Button.svelte";
import Requite from "requite-svelte";
let components = {
Header,
Button
};
let data = [
{
name: "Header"
},
{
name: "Button"
}
];
</script>
<style>
main {
margin-top: 70px;
}
</style>
<main>
<Requite {data} {components} />
</main>
MIT © vacom