-
Notifications
You must be signed in to change notification settings - Fork 2.8k
/
Copy pathCard.Teams.stories.tsx
70 lines (68 loc) · 2.34 KB
/
Card.Teams.stories.tsx
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 * as React from 'react';
import { TestImages } from '@fluentui/example-data';
import { Image, ImageFit, Persona, PersonaPresence, Stack, Text } from '@fluentui/react';
import { DefaultButton, IconButton } from '@fluentui/react/lib/compat/Button';
import { Card, CardBody, CardFooter, CardHeader } from '@fluentui/react-cards/lib/next/index';
function onClick() {
alert('Card was clicked');
}
export const TeamsCards = () => (
<Stack gap={40}>
<div>
<Text variant="xLarge">Basic Card</Text>
<Card onClick={onClick}>
<CardHeader>
<Persona
imageUrl={TestImages.personaMale}
text="Carmen Gaylord"
secondaryText="Direct Communications Agent"
presence={PersonaPresence.offline}
/>
</CardHeader>
<CardBody>
Voluptatibus commodi ut. Neque eum odit eius repellat molestiae illo aut ut illum. Nulla vel et odit
consequatur dolorem molestias. Rem rerum animi consequatur.
</CardBody>
</Card>
</div>
<div>
<Text variant="xLarge">Only header</Text>
<Card onClick={onClick}>
<CardHeader fitted>
<Persona
imageUrl={TestImages.personaMale}
text="Carmen Gaylord"
secondaryText="Direct Communications Agent"
presence={PersonaPresence.offline}
/>
</CardHeader>
</Card>
</div>
<div>
<Text variant="xLarge">Only body</Text>
<Card onClick={onClick}>
<CardBody fitted>
<Stack gap={10}>
<Image src="http://placehold.it/500x500" imageFit={ImageFit.cover} height={300} maximizeFrame />
<Text>Citizens of distant epochs muse about at theedge of forever hearts of the...</Text>
</Stack>
</CardBody>
</Card>
</div>
<div>
<Text variant="xLarge">Only footer</Text>
<Card onClick={onClick}>
<CardFooter fitted>
<Stack horizontal horizontalAlign="space-between">
<DefaultButton text="Action" />
<Stack horizontal>
<IconButton iconProps={{ iconName: 'FavoriteStar' }} />
<IconButton iconProps={{ iconName: 'Download' }} />
<IconButton iconProps={{ iconName: 'More' }} />
</Stack>
</Stack>
</CardFooter>
</Card>
</div>
</Stack>
);