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
51 lines
1.4 KiB
JavaScript
51 lines
1.4 KiB
JavaScript
import Link from '@mui/joy/Link';
|
|
import Typography from '@mui/joy/Typography';
|
|
import Breadcrumbs from '@mui/joy/Breadcrumbs';
|
|
import JoyUsageDemo from 'docs/src/modules/components/JoyUsageDemo';
|
|
|
|
export default function BreadcrumbsUsage() {
|
|
return (
|
|
<JoyUsageDemo
|
|
componentName="Breadcrumbs"
|
|
data={[
|
|
{
|
|
propName: 'size',
|
|
knob: 'radio',
|
|
options: ['sm', 'md', 'lg'],
|
|
defaultValue: 'md',
|
|
},
|
|
{
|
|
propName: 'separator',
|
|
knob: 'input',
|
|
defaultValue: '/',
|
|
},
|
|
{
|
|
propName: 'children',
|
|
defaultValue: '<Link />\n ...',
|
|
},
|
|
]}
|
|
renderDemo={(props) => (
|
|
<Breadcrumbs {...props} aria-label="breadcrumbs">
|
|
<Link
|
|
// The `preventDefault` is for demonstration purposes, generally, you don't need it in your application
|
|
onClick={(event) => event.preventDefault()}
|
|
color="neutral"
|
|
href="/"
|
|
>
|
|
MUI
|
|
</Link>
|
|
<Link
|
|
// The `preventDefault` is for demonstration purposes, generally, you don't need it in your application
|
|
onClick={(event) => event.preventDefault()}
|
|
color="neutral"
|
|
href="/joy-ui/getting-started/installation/"
|
|
>
|
|
Joy
|
|
</Link>
|
|
<Typography>Breadcrumbs</Typography>
|
|
</Breadcrumbs>
|
|
)}
|
|
/>
|
|
);
|
|
}
|