requite-svelte Svelte Themes

Requite Svelte

Dynamic selector for Svelte

Requite for Svelte

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.

Installation

Just install the dependency and start using


npm i requite-svelte or yarn add requite-svelte

How to import

After installing the dependency, just import the components you need

import Requite from "./requite-svelte";

Usage

<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>

License

MIT © vacom

Top categories

Loading Svelte Themes