mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
29 lines
815 B
JavaScript
29 lines
815 B
JavaScript
import { storiesOf } from '@storybook/vue'
|
|
import { withA11y } from '@storybook/addon-a11y'
|
|
import { action } from '@storybook/addon-actions'
|
|
import PaginationButtons from '~/components/_new/generic/PaginationButtons/PaginationButtons'
|
|
import helpers from '~/storybook/helpers'
|
|
|
|
helpers.init()
|
|
|
|
storiesOf('PaginationButtons', module)
|
|
.addDecorator(withA11y)
|
|
.addDecorator(helpers.layout)
|
|
.add('basic pagination', () => ({
|
|
components: { PaginationButtons },
|
|
data: () => ({
|
|
hasNext: true,
|
|
hasPrevious: false,
|
|
}),
|
|
methods: {
|
|
back: action('back'),
|
|
next: action('next'),
|
|
},
|
|
template: `<pagination-buttons
|
|
:hasNext="hasNext"
|
|
:hasPrevious="hasPrevious"
|
|
@back="back"
|
|
@next="next"
|
|
/>`,
|
|
}))
|