about summary refs log tree commit diff
path: root/components/NavLink.stories.js
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2019-11-09 08:28:09 +0100
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2019-11-09 08:28:09 +0100
commitdec87e2a665c5cd1c75686dda388c042a1b042f6 (patch)
tree3c4be4f258e7767c56dd1be5a4258ebf389d4bb4 /components/NavLink.stories.js
parent2103c12d42a7d10ef15886119929ef7326822833 (diff)
downloadpuszcza-dec87e2a665c5cd1c75686dda388c042a1b042f6.tar.gz
puszcza-dec87e2a665c5cd1c75686dda388c042a1b042f6.zip
Add stories for Header & JoinUs
Diffstat (limited to 'components/NavLink.stories.js')
-rw-r--r--components/NavLink.stories.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/components/NavLink.stories.js b/components/NavLink.stories.js
new file mode 100644
index 0000000..44fe6ae
--- /dev/null
+++ b/components/NavLink.stories.js
@@ -0,0 +1,19 @@
+import { storiesOf } from '@storybook/vue'
+import { center } from '../.storybook/decorators'
+
+import NavLink from './NavLink'
+
+const navLink = {
+  name: 'Test',
+  link: '/test'
+}
+
+storiesOf('NavLink', module)
+  .addDecorator(center)
+  .add('default', () => {
+    return {
+      components: { NavLink },
+      template: `<nav-link :name="name" :link="link" />`,
+      data: () => navLink
+    }
+  })