forked from microsoft/fluentui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathImageBordered.stories.tsx
61 lines (60 loc) · 1.68 KB
/
ImageBordered.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
import * as React from 'react';
import { Image } from '@fluentui/react-components';
export const Bordered = () => (
<div>
<div style={{ display: 'flex', gap: 8 }}>
<Image
alt="Allan's avatar"
src="https://fabricweb.azureedge.net/fabric-website/assets/images/avatar/AllanMunger.jpg"
height={200}
width={200}
/>
<Image
alt="Amanda's avatar"
shape="rounded"
src="https://fabricweb.azureedge.net/fabric-website/assets/images/avatar/AmandaBrady.jpg"
height={200}
width={200}
/>
<Image
alt="Erik's avatar"
shape="circular"
src="https://fabricweb.azureedge.net/fabric-website/assets/images/avatar/ErikNason.jpg"
height={200}
width={200}
/>
</div>
<div style={{ display: 'flex', gap: 8, marginTop: '15px' }}>
<Image
alt="Allan's avatar"
bordered
src="https://fabricweb.azureedge.net/fabric-website/assets/images/avatar/AllanMunger.jpg"
height={200}
width={200}
/>
<Image
alt="Amanda's avatar"
bordered
shape="rounded"
src="https://fabricweb.azureedge.net/fabric-website/assets/images/avatar/AmandaBrady.jpg"
height={200}
width={200}
/>
<Image
alt="Erik's avatar"
bordered
shape="circular"
src="https://fabricweb.azureedge.net/fabric-website/assets/images/avatar/ErikNason.jpg"
height={200}
width={200}
/>
</div>
</div>
);
Bordered.parameters = {
docs: {
description: {
story: 'The `bordered` prop will apply a border style to images regardless of its shape.',
},
},
};