-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbreadcrumbs.component.tsx
39 lines (35 loc) · 1.08 KB
/
breadcrumbs.component.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
import * as React from 'react';
import { Breadcrumbs, Link, makeStyles, Paper, Theme } from '@material-ui/core';
interface IProps {}
const useStyles = makeStyles((theme: Theme) => ({
root: {
justifyContent: 'center',
flexWrap: 'wrap',
borderBottom: theme.custom.borders.primary,
},
paper: { padding: theme.spacing(1, 3) },
slimFont: { fontWeight: theme.typography.fontWeightLight as number },
breadCrumbs: {
fontSize: theme.typography.h4.fontSize,
color: theme.custom.colors.secondary.gray[200],
fontWeight: theme.typography.fontWeightLight as number,
},
}));
const BreadcrumbsComponent: React.SFC<IProps> = () => {
const classes = useStyles();
return (
<div className={classes.root}>
<Paper elevation={0} className={classes.paper}>
<Breadcrumbs className={classes.breadCrumbs} aria-label="Breadcrumb">
<Link className={classes.breadCrumbs} href="/">
Material-UI
</Link>
<Link className={classes.breadCrumbs} href="/getting-started/installation/">
Core
</Link>
</Breadcrumbs>
</Paper>
</div>
);
};
export default BreadcrumbsComponent;