0.0.6 • Published 4 years ago

pubs-simple-svelte-component v0.0.6

Weekly downloads
21
License
-
Repository
-
Last release
4 years ago

pubs-simple-svelte-component

comment: <> (packageVersion:0.0.6) comment: <> (packageName:pubs-simple-svelte-component) comment: <> (componentName:SimpleSvelteComponent)

SimpleSvelteComponent is a vanilla javascript component which will work in any frontend framework. You can install from npm like this:

npm install --save pubs-simple-svelte-component

Vanilla Javascript

Below you can see how to use the component with vanilla js.

...
<head>
    ...
    <script src="./node_module/pubs-simple-svelte-component/index.js"></script>
</head>
<body>
    <script>
        new SimpleSvelteComponent({target:document.body})
    </script>
</body>

ES module

<body>
    <script type="module">
        import SimpleSvelteComponent from './node_module/pubs-simple-svelte-component/index.mjs'
        new SimpleSvelteComponent({target:document.body})
    </script>
</body>

Svelte Component

<script>
    import SimpleSvelteComponent from 'pubs-simple-svelte-component'
</script>
<SimpleSvelteComponent/>
0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago