about summary refs log tree commit diff
path: root/components/GoogleDriveLink.stories.js
blob: 37d67e8f18a868bf45951b7a131df7b6e04354ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
    }
  })