An open API service indexing awesome lists of open source software.

https://github.com/restspace/svelte-script-lib-template


https://github.com/restspace/svelte-script-lib-template

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

          

# Svelte + TS + Vite > class library

This is a variation of the standard npm install vite TS/Svelte library. Its build output is a js file which can be loaded as a script on a webpage and then used in code on the page as a class e.g.




import { SvelteComponent } from "https://myfiles.com/path/to/svelteComponent.js";

const x = new SvelteComponent({
target: document.getElementById("container"),
props: {
prop1: prop1val
}
});