about summary refs log tree commit diff
path: root/components/PurePostList.stories.js
diff options
context:
space:
mode:
Diffstat (limited to 'components/PurePostList.stories.js')
-rw-r--r--components/PurePostList.stories.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/components/PurePostList.stories.js b/components/PurePostList.stories.js
new file mode 100644
index 0000000..134cd68
--- /dev/null
+++ b/components/PurePostList.stories.js
@@ -0,0 +1,16 @@
+import { storiesOf } from '@storybook/vue'
+
+import { postLink } from './PostLink.stories'
+
+import PurePostList from './PurePostList'
+
+export const posts = Array(5).fill(postLink)
+console.log(posts)
+
+storiesOf('PurePostList', module).add('default', () => {
+  return {
+    components: { PurePostList },
+    template: `<pure-post-list :posts="posts"/>`,
+    data: () => ({ posts })
+  }
+})