import { storiesOf } from '@storybook/vue'
import { defineComponent, ref } from '@vue/composition-api'
import { useCount } from '../index'
import md from '../docs/count.md'
const Count = defineComponent({
template: `
EXAMPLE - national counter
count: {{count}}
min: {{min}}
max: {{max}}
`,
setup() {
//national counter
const { count, change, min, max } = useCount()
count.value = 10
min.value = 10
max.value = 100
return {
count, min, max, change,
}
}
})
storiesOf('UI|useCount', module)
.add('count', () => Count, {
readme: {
sidebar: md
}
})