-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCard.stories.ts
More file actions
81 lines (74 loc) · 1.95 KB
/
Card.stories.ts
File metadata and controls
81 lines (74 loc) · 1.95 KB
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
71
72
73
74
75
76
77
78
79
80
81
import Card from '.';
export default {
title: 'Components/Cards',
component: Card,
argTypes: {},
};
export const Example = (args) => ({
components: {Card},
setup() {
return {args};
},
template: `
<Card
no-body
style="width: 18rem"
v-bind="args"
>
<img src="https://picsum.photos/id/237/200/130" class="card-img-top" alt="aaa">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</Card>
`,
});
export const Body = (args) => ({
components: {Card},
setup() {
return {args};
},
template: `
<Card
no-body
v-bind="args"
>
<div class="card-body">
I am a body
</div>
<div class="card-body">
I am a body
</div>
</Card>
`,
});
export const TitlesTextLinks = (args) => ({
components: {Card},
setup() {
return {args};
},
template: `
<Card v-bind="args">
<h5 class="card-title">Card title</h5>
<h6 class="card-subtitle mb-2">Card subtitle</h6>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<a href="#" class="card-link">Card link</a>
<a href="#" class="card-link">Another link</a>
</Card>
`,
});
export const HeaderFooter = (args) => ({
components: {Card},
setup() {
return {args};
},
template: `
<Card
footer="I am a footer"
header="I am a header"
text="I am just normal text"
v-bind="args"
/>
`,
});