diff --git a/packages/mui/src/components/breadcrumb/index.tsx b/packages/mui/src/components/breadcrumb/index.tsx index d9428810aa51f..636aae726c540 100644 --- a/packages/mui/src/components/breadcrumb/index.tsx +++ b/packages/mui/src/components/breadcrumb/index.tsx @@ -37,9 +37,12 @@ export const Breadcrumb: React.FC = ({ const LinkRouter = (props: LinkProps & { to?: string }) => { const { to, children, ...restProps } = props; + return ( - {children} + + {children} + ); }; @@ -72,6 +75,7 @@ export const Breadcrumb: React.FC = ({ )} )} + {breadcrumbs.map(({ label, icon, href }) => { return ( = ({ }} > {!hideIcons && icon} + {href ? (