| 1 |
|
| 2 |
<!doctype html> |
| 3 |
|
| 4 |
<html lang="en"> |
| 5 |
<head> |
| 6 |
<meta charset="utf-8"> |
| 7 |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 8 |
<title><my-element> ⌲ Examples ⌲ Name Property</title> |
| 9 |
<link rel="stylesheet" href="../../docs.css"> |
| 10 |
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600|Roboto+Mono"> |
| 11 |
<link href="../../prism-okaidia.css" rel="stylesheet" /> |
| 12 |
<script src="/node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script> |
| 13 |
<script src="/node_modules/lit/polyfill-support.js"></script> |
| 14 |
<script type="module" src="../../my-element.bundled.js"></script> |
| 15 |
</head> |
| 16 |
<body> |
| 17 |
|
| 18 |
<header> |
| 19 |
<h1><my-element></h1> |
| 20 |
<h2>A web component just for me.</h2> |
| 21 |
</header> |
| 22 |
|
| 23 |
<nav> |
| 24 |
<a href="../../">Home</a> |
| 25 |
<a href="../">Examples</a> |
| 26 |
<a href="../../api/">API</a> |
| 27 |
<a href="../../install/">Install</a> |
| 28 |
</nav> |
| 29 |
<div id="main-wrapper"> |
| 30 |
<main> |
| 31 |
|
| 32 |
<h1>Example: Name Property</h1> |
| 33 |
<section class="examples"> |
| 34 |
<nav class="collection"> |
| 35 |
<ul> |
| 36 |
|
| 37 |
<li class=> |
| 38 |
<a href="../">A basic example</a> |
| 39 |
</li> |
| 40 |
|
| 41 |
<li class=selected> |
| 42 |
<a href="">Setting the name property</a> |
| 43 |
</li> |
| 44 |
|
| 45 |
</ul> |
| 46 |
</nav> |
| 47 |
<div> |
| 48 |
<p><my-element name="Earth"></my-element></p> |
| 49 |
<h3>HTML</h3> |
| 50 |
<pre class="language-html"><code class="language-html"><span class="token tag"><span class="token tag"><span class="token punctuation"><</span>my-element</span> <span class="token attr-name">name</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>Earth<span class="token punctuation">"</span></span><span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation"></</span>my-element</span><span class="token punctuation">></span></span></code></pre> |
| 51 |
|
| 52 |
</div> |
| 53 |
</section> |
| 54 |
|
| 55 |
</main> |
| 56 |
</div> |
| 57 |
|
| 58 |
<footer> |
| 59 |
<p> |
| 60 |
Made with |
| 61 |
<a href="https://github.com/lit/lit-element-starter-ts">lit-starter-ts</a> |
| 62 |
</p> |
| 63 |
</footer> |
| 64 |
</body> |
| 65 |
</html> |