aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/push-button
diff options
context:
space:
mode:
authorJan Tuomi <jan.tuomi@eficode.com>2018-03-03 16:41:55 +0200
committerJan Tuomi <jan.tuomi@eficode.com>2018-03-03 16:41:55 +0200
commite6774fa740ea303073f77f3f7e50ce3e03e8de58 (patch)
treeab04adc8d7ebbf4f3b1453f46ef7738e82457004 /src/components/push-button
Initial commit
Diffstat (limited to 'src/components/push-button')
-rw-r--r--src/components/push-button/push-button.less1
-rw-r--r--src/components/push-button/push-button.tag13
2 files changed, 14 insertions, 0 deletions
diff --git a/src/components/push-button/push-button.less b/src/components/push-button/push-button.less
new file mode 100644
index 0000000..488fc37
--- /dev/null
+++ b/src/components/push-button/push-button.less
@@ -0,0 +1 @@
+@import "../../style.less"; \ No newline at end of file
diff --git a/src/components/push-button/push-button.tag b/src/components/push-button/push-button.tag
new file mode 100644
index 0000000..2d24c88
--- /dev/null
+++ b/src/components/push-button/push-button.tag
@@ -0,0 +1,13 @@
+<push-button>
+ <button onclick={ click }>Click me!</button>
+
+ <style type="less">
+ @import "./push-button";
+ </style>
+
+ <script>
+ click() {
+ clicker.trigger('click');
+ }
+ </script>
+</push-button> \ No newline at end of file