Merge pull request #2076 from Human-Connection/1851-make-hashtags-clickable

[Systems-Development-and-Frameworks] Clickable hashtags
This commit is contained in:
mattwr18 2019-11-19 14:00:28 +01:00 committed by GitHub
commit c3d8cb68e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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" />
```