-
Notifications
You must be signed in to change notification settings - Fork 46
/
ButtonGroup.stories.js
69 lines (64 loc) · 2.22 KB
/
ButtonGroup.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import ButtonGroup from "./ButtonGroup.vue";
import ButtonGroupTests from "./ButtonGroupTests.vue";
export default {
title: 'Button Groups',
component: ButtonGroup,
};
export const All = () => ({
title: 'Button Groups',
components: { ButtonGroupTests },
template: `<button-group-tests />`,
});
All.parameters = {
docs: {
source: {
code: `
<ButtonGroup ariaLabel="Appropriate label for your button group">
<Button>One</Button>
<Button>Two</Button>
<Button>Three</Button>
</ButtonGroup>
<ButtonGroup ariaLabel="Appropriate label for your button group">
<Button isBordered>One</Button>
<Button isBordered>Two</Button>
<Button isBordered>Three</Button>
</ButtonGroup>
<ButtonGroup ariaLabel="Appropriate label for your button group">
<Button isRaised>One</Button>
<Button isRaised>Two</Button>
<Button isRaised>Three</Button>
</ButtonGroup>
<ButtonGroup ariaLabel="Appropriate label for your button group">
<Button mode="primary">One</Button>
<Button mode="primary">Two</Button>
<Button mode="primary">Three</Button>
</ButtonGroup>
<ButtonGroup ariaLabel="Appropriate label for your button group">
<Button mode="primary" :isBordered="true">One</Button>
<Button mode="primary" isBordered>Two</Button>
<Button mode="primary" isBordered>Three</Button>
</ButtonGroup>
<ButtonGroup ariaLabel="Appropriate label for your button group">
<Button mode="primary" :isRaised="true">One</Button>
<Button mode="primary" :isRaised="true">Two</Button>
<Button mode="primary" isRaised>Three</Button>
</ButtonGroup>
<ButtonGroup ariaLabel="Appropriate label for your button group">
<Button mode="secondary">One</Button>
<Button mode="secondary">Two</Button>
<Button mode="secondary">Three</Button>
</ButtonGroup>
<ButtonGroup ariaLabel="Appropriate label for your button group">
<Button mode="secondary" :isBordered="true">One</Button>
<Button mode="secondary" isBordered>Two</Button>
<Button mode="secondary" isBordered>Three</Button>
</ButtonGroup>
<ButtonGroup ariaLabel="Appropriate label for your button group">
<Button mode="secondary" :isRaised="true">One</Button>
<Button mode="secondary" :isRaised="true">Two</Button>
<Button mode="secondary" isRaised>Three</Button>
</ButtonGroup
`
}
},
}