30 lines
850 B
TypeScript
30 lines
850 B
TypeScript
|
|
import * as React from 'react';
|
||
|
|
import Typography from '@mui/material/Typography';
|
||
|
|
import Breadcrumbs from '@mui/material/Breadcrumbs';
|
||
|
|
import Link from '@mui/material/Link';
|
||
|
|
|
||
|
|
function handleClick(event: React.MouseEvent<HTMLDivElement, MouseEvent>) {
|
||
|
|
event.preventDefault();
|
||
|
|
console.info('You clicked a breadcrumb.');
|
||
|
|
}
|
||
|
|
|
||
|
|
export default function BasicBreadcrumbs() {
|
||
|
|
return (
|
||
|
|
<div role="presentation" onClick={handleClick}>
|
||
|
|
<Breadcrumbs aria-label="breadcrumb">
|
||
|
|
<Link underline="hover" color="inherit" href="/">
|
||
|
|
MUI
|
||
|
|
</Link>
|
||
|
|
<Link
|
||
|
|
underline="hover"
|
||
|
|
color="inherit"
|
||
|
|
href="/material-ui/getting-started/installation/"
|
||
|
|
>
|
||
|
|
Core
|
||
|
|
</Link>
|
||
|
|
<Typography sx={{ color: 'text.primary' }}>Breadcrumbs</Typography>
|
||
|
|
</Breadcrumbs>
|
||
|
|
</div>
|
||
|
|
);
|
||
|
|
}
|