forked from algolia/vue-instantsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPanel.stories.js
45 lines (44 loc) · 1.07 KB
/
Panel.stories.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import { storiesOf } from '@storybook/vue';
import { previewWrapper } from './utils';
storiesOf('ais-panel', module)
.addDecorator(previewWrapper())
.add('default', () => ({
template: `
<ais-panel>
<template slot="header">Brand</template>
<ais-refinement-list attribute="brand" />
</ais-panel>
`,
}))
.add('text content', () => ({
template: `
<ais-panel>
This is the body of the Panel.
</ais-panel>
`,
}))
.add('with header', () => ({
template: `
<ais-panel>
<template slot="header">Header</template>
This is the body of the Panel.
</ais-panel>
`,
}))
.add('with footer', () => ({
template: `
<ais-panel>
This is the body of the Panel.
<template slot="footer">Footer</template>
</ais-panel>
`,
}))
.add('with header & footer', () => ({
template: `
<ais-panel>
<template slot="header">Header</template>
This is the body of the Panel.
<template slot="footer">Footer</template>
</ais-panel>
`,
}));