Created
August 19, 2018 17:46
-
-
Save jhnns/c418cb456fc46d8e320ede133547daad to your computer and use it in GitHub Desktop.
Template element example
This file contains hidden or 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