about summary refs log tree commit diff
path: root/components/GoogleDriveLink.stories.js
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2019-12-29 22:34:01 +0100
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2019-12-29 22:34:01 +0100
commit8afae8ea960b7162df851ad5946f4bbebd729ff3 (patch)
treea427b953476963ff4615b33843990453c182b94d /components/GoogleDriveLink.stories.js
parentd81efb1e043180885bfb6ea9eac173a86fea6aad (diff)
downloadpuszcza-8afae8ea960b7162df851ad5946f4bbebd729ff3.tar.gz
puszcza-8afae8ea960b7162df851ad5946f4bbebd729ff3.zip
Basic template
Diffstat (limited to 'components/GoogleDriveLink.stories.js')
-rw-r--r--components/GoogleDriveLink.stories.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/components/GoogleDriveLink.stories.js b/components/GoogleDriveLink.stories.js
new file mode 100644
index 0000000..37d67e8
--- /dev/null
+++ b/components/GoogleDriveLink.stories.js
@@ -0,0 +1,19 @@
+import { storiesOf } from '@storybook/vue'
+import { center } from '../.storybook/decorators'
+
+import GoogleDriveLink from './GoogleDriveLink'
+
+const googleDriveLink = {
+  text: 'Test',
+  link: 'https://drive.google.com/u/1'
+}
+
+storiesOf('GoogleDriveLink', module)
+  .addDecorator(center)
+  .add('default', () => {
+    return {
+      components: { GoogleDriveLink },
+      template: `<google-drive-link :text="text" :link="link" />`,
+      data: () => googleDriveLink
+    }
+  })