46 lines
1.4 KiB
TypeScript
46 lines
1.4 KiB
TypeScript
|
|
import * as React from 'react';
|
||
|
|
import Typography from '@mui/material/Typography';
|
||
|
|
import Breadcrumbs from '@mui/material/Breadcrumbs';
|
||
|
|
import Link from '@mui/material/Link';
|
||
|
|
import HomeIcon from '@mui/icons-material/Home';
|
||
|
|
import WhatshotIcon from '@mui/icons-material/Whatshot';
|
||
|
|
import GrainIcon from '@mui/icons-material/Grain';
|
||
|
|
|
||
|
|
function handleClick(event: React.MouseEvent<HTMLDivElement, MouseEvent>) {
|
||
|
|
event.preventDefault();
|
||
|
|
console.info('You clicked a breadcrumb.');
|
||
|
|
}
|
||
|
|
|
||
|
|
export default function IconBreadcrumbs() {
|
||
|
|
return (
|
||
|
|
<div role="presentation" onClick={handleClick}>
|
||
|
|
<Breadcrumbs aria-label="breadcrumb">
|
||
|
|
<Link
|
||
|
|
underline="hover"
|
||
|
|
sx={{ display: 'flex', alignItems: 'center' }}
|
||
|
|
color="inherit"
|
||
|
|
href="/"
|
||
|
|
>
|
||
|
|
<HomeIcon sx={{ mr: 0.5 }} fontSize="inherit" />
|
||
|
|
MUI
|
||
|
|
</Link>
|
||
|
|
<Link
|
||
|
|
underline="hover"
|
||
|
|
sx={{ display: 'flex', alignItems: 'center' }}
|
||
|
|
color="inherit"
|
||
|
|
href="/material-ui/getting-started/installation/"
|
||
|
|
>
|
||
|
|
<WhatshotIcon sx={{ mr: 0.5 }} fontSize="inherit" />
|
||
|
|
Core
|
||
|
|
</Link>
|
||
|
|
<Typography
|
||
|
|
sx={{ color: 'text.primary', display: 'flex', alignItems: 'center' }}
|
||
|
|
>
|
||
|
|
<GrainIcon sx={{ mr: 0.5 }} fontSize="inherit" />
|
||
|
|
Breadcrumb
|
||
|
|
</Typography>
|
||
|
|
</Breadcrumbs>
|
||
|
|
</div>
|
||
|
|
);
|
||
|
|
}
|