docs: add storybook story for hashtag component

This commit is contained in:
roschaefer 2019-10-29 17:37:47 +01:00
parent 00fd014dc1
commit 32b93d1ff3
2 changed files with 18 additions and 7 deletions

View File

@ -0,0 +1,18 @@
import { storiesOf } from '@storybook/vue'
import { withA11y } from '@storybook/addon-a11y'
import Hashtag from './Hashtag.vue'
import helpers from '~/storybook/helpers'
helpers.init()
storiesOf('Hashtag', module)
.addDecorator(withA11y)
.addDecorator(helpers.layout)
.add('clickable', () => ({
components: { Hashtag },
store: helpers.store,
data: () => ({
hashtag: 'SomeHashtag',
}),
template: '<hashtag :id="hashtag" />',
}))

View File

@ -1,7 +0,0 @@
### Example
Tag "Liebe"
```
<hc-hashtag name="Liebe" />
```