-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
/
Copy pathIconAvatars.tsx
44 lines (41 loc) · 1.06 KB
/
IconAvatars.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
import React from 'react';
import { makeStyles, createStyles, Theme } from '@material-ui/core/styles';
import { green, pink } from '@material-ui/core/colors';
import Avatar from '@material-ui/core/Avatar';
import FolderIcon from '@material-ui/icons/Folder';
import PageviewIcon from '@material-ui/icons/Pageview';
import AssignmentIcon from '@material-ui/icons/Assignment';
const useStyles = makeStyles((theme: Theme) =>
createStyles({
root: {
display: 'flex',
'& > *': {
margin: theme.spacing(1),
},
},
pink: {
color: theme.palette.getContrastText(pink[500]),
backgroundColor: pink[500],
},
green: {
color: '#fff',
backgroundColor: green[500],
},
}),
);
export default function IconAvatars() {
const classes = useStyles();
return (
<div className={classes.root}>
<Avatar>
<FolderIcon />
</Avatar>
<Avatar className={classes.pink}>
<PageviewIcon />
</Avatar>
<Avatar className={classes.green}>
<AssignmentIcon />
</Avatar>
</div>
);
}