Some checks failed
No response / noResponse (push) Has been cancelled
CI / Continuous releases (push) Has been cancelled
CI / test-dev (macos-latest) (push) Has been cancelled
CI / test-dev (ubuntu-latest) (push) Has been cancelled
CI / test-dev (windows-latest) (push) Has been cancelled
Maintenance / main (push) Has been cancelled
Scorecards supply-chain security / Scorecards analysis (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
49 lines
1.2 KiB
JavaScript
49 lines
1.2 KiB
JavaScript
import * as React from 'react';
|
||
import Breadcrumbs from '@mui/material/Breadcrumbs';
|
||
import Typography from '@mui/material/Typography';
|
||
import Link from '@mui/material/Link';
|
||
import Stack from '@mui/material/Stack';
|
||
import NavigateNextIcon from '@mui/icons-material/NavigateNext';
|
||
|
||
function handleClick(event) {
|
||
event.preventDefault();
|
||
console.info('You clicked a breadcrumb.');
|
||
}
|
||
|
||
export default function CustomSeparator() {
|
||
const breadcrumbs = [
|
||
<Link underline="hover" key="1" color="inherit" href="/" onClick={handleClick}>
|
||
MUI
|
||
</Link>,
|
||
<Link
|
||
underline="hover"
|
||
key="2"
|
||
color="inherit"
|
||
href="/material-ui/getting-started/installation/"
|
||
onClick={handleClick}
|
||
>
|
||
Core
|
||
</Link>,
|
||
<Typography key="3" sx={{ color: 'text.primary' }}>
|
||
Breadcrumb
|
||
</Typography>,
|
||
];
|
||
|
||
return (
|
||
<Stack spacing={2}>
|
||
<Breadcrumbs separator="›" aria-label="breadcrumb">
|
||
{breadcrumbs}
|
||
</Breadcrumbs>
|
||
<Breadcrumbs separator="-" aria-label="breadcrumb">
|
||
{breadcrumbs}
|
||
</Breadcrumbs>
|
||
<Breadcrumbs
|
||
separator={<NavigateNextIcon fontSize="small" />}
|
||
aria-label="breadcrumb"
|
||
>
|
||
{breadcrumbs}
|
||
</Breadcrumbs>
|
||
</Stack>
|
||
);
|
||
}
|