Created
August 19, 2018 17:46
Star
You must be signed in to star a gist
Template element example
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
... | |
<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