Skip to content

Instantly share code, notes, and snippets.

@jhnns
Created August 19, 2018 17:46
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jhnns/c418cb456fc46d8e320ede133547daad to your computer and use it in GitHub Desktop.
Template element example
...
<template id="my-element-template">
<style>
.bubble {
border: .4rem solid black;
border-radius: 2rem;
margin: 1rem;
padding: 1rem .5rem;
cursor: pointer;
font-size: 20px;
font-family: "Times New Roman", serif;
}
</style>
<div class="bubble">
<slot>NEED NAME</slot>
</div>
</template>
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment