Index: sky/framework/sky-menu-divider.sky |
diff --git a/sky/examples/example-element/example-element.sky b/sky/framework/sky-menu-divider.sky |
similarity index 51% |
copy from sky/examples/example-element/example-element.sky |
copy to sky/framework/sky-menu-divider.sky |
index 097d4f54e2ca5484550450987d49c350ce3122b4..d83f70ab00f4ac65625c051eeae48d3cfa3d9686 100644 |
--- a/sky/examples/example-element/example-element.sky |
+++ b/sky/framework/sky-menu-divider.sky |
@@ -3,23 +3,24 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
--> |
-<import src="/sky/framework/sky-element.sky" /> |
+<import src="sky-element.sky" /> |
+ |
<sky-element> |
<template> |
<style> |
- div { |
- height: 50px; |
- width: 50px; |
- background-color: green; |
+ :host { |
+ margin: 8px 0; |
+ border-bottom: 1px solid rgba(0, 0, 0, 0.12); |
} |
</style> |
- <div>Hi</div> |
</template> |
<script> |
-@Tagname('example') |
-class ExampleElement extends SkyElement { |
+import "dart:sky"; |
+ |
+@Tagname('sky-menu-divider') |
+class SkyMenuDivider extends SkyElement { |
} |
-_init(script) => register(script, ExampleElement); |
+_init(script) => register(script, SkyMenuDivider); |
</script> |
</sky-element> |