mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
docs: add storybook story for hashtag component
This commit is contained in:
parent
00fd014dc1
commit
32b93d1ff3
18
webapp/components/Hashtag/Hashtag.story.js
Normal file
18
webapp/components/Hashtag/Hashtag.story.js
Normal 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" />',
|
||||
}))
|
||||
@ -1,7 +0,0 @@
|
||||
### Example
|
||||
|
||||
Tag "Liebe"
|
||||
|
||||
```
|
||||
<hc-hashtag name="Liebe" />
|
||||
```
|
||||
Loading…
x
Reference in New Issue
Block a user