-
Notifications
You must be signed in to change notification settings - Fork 7
/
cosmoz-bottom-bar.stories.ts
70 lines (66 loc) · 1.61 KB
/
cosmoz-bottom-bar.stories.ts
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import type { Meta, StoryObj } from '@storybook/web-components';
import { html } from 'lit-html';
import '../src/cosmoz-bottom-bar-next';
import '@polymer/paper-button/paper-button.js';
const CosmozBottomBar = ({
active,
hideButton1,
hideButton2,
hideButton3,
hideButton4,
hideButton5,
}: {
active?: boolean;
hideButton1?: boolean;
hideButton2?: boolean;
hideButton3?: boolean;
hideButton4?: boolean;
hideButton5?: boolean;
}) => {
return html`<cosmoz-bottom-bar id="bottomBar" ?active=${active}>
<span slot="info">Bottom bar demo</span>
<paper-button ?hidden=${hideButton1}>Button 1</paper-button>
<paper-button ?hidden=${hideButton2} data-priority="10"
>Button 2</paper-button
>
<paper-button ?hidden=${hideButton3}>Button 3</paper-button>
<paper-button ?hidden=${hideButton4} data-priority="20"
>Button 4</paper-button
>
<paper-button ?hidden=${hideButton5}>Button 5</paper-button>
</cosmoz-bottom-bar>`;
};
const meta: Meta = {
title: 'Cosmoz Bottom Bar',
render: CosmozBottomBar,
argTypes: {
active: { control: 'boolean' },
hasMenuItems: { control: 'boolean' },
maxToolbarItems: { control: 'number' },
hideButton1: { control: 'boolean' },
hideButton2: { control: 'boolean' },
hideButton3: { control: 'boolean' },
hideButton4: { control: 'boolean' },
hideButton5: { control: 'boolean' },
},
parameters: {
docs: {
description: {
component: 'The Cosmoz Bottom Bar web component',
},
},
},
};
export default meta;
export const Basic: StoryObj = {
args: {
active: true,
},
parameters: {
docs: {
description: {
story: 'The basic version',
},
},
},
};