Created
January 20, 2023 03:47
-
-
Save theetrain/6ffed6c8791e6a0da39cee660ecbcc13 to your computer and use it in GitHub Desktop.
Svelte custom element
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<svelte:options tag="my-app" /> | |
<workgroup-page /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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