Skip to content

Instantly share code, notes, and snippets.

@theetrain
Created January 20, 2023 03:47
Show Gist options
  • Save theetrain/6ffed6c8791e6a0da39cee660ecbcc13 to your computer and use it in GitHub Desktop.
Save theetrain/6ffed6c8791e6a0da39cee660ecbcc13 to your computer and use it in GitHub Desktop.
Svelte custom element
<svelte:options tag="my-app" />
<workgroup-page />
<svelte:options tag="workgroup-page" />
<main>
<h1>
HEADING ON THE WORKGROUP PAGE
</h1>
<div class="form-group">
<input type="text" class="form-control" id="test"/>
<label for="test">Test Input</label>
</div>
<button type=button class="btn btn-danger">
test
</button>
<div class="btn">Hello</div>
</main>
<style lang="scss">
@use './button.scss'
</style>
import App from './App.svelte'
import Component from './Component.svelte'
const app = new App({
target: document.getElementById('app')
})
export default app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment