about summary refs log tree commit diff
path: root/components/NavLink.stories.js
blob: 44fe6aeffdfc09d84738991620804b58d7382a6d (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 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
    }
  })