Version: 3.xx.xxSwizzle Ready
Breadcrumb
A breadcrumb displays the current location within a hierarchy. It allows going back to states higher up in the hierarchy. <Breadcrumb>
component built with Material UI Breadcrumb components using the useBreadcrumb
hook.
Swizzle
You can swizzle this component to customize it with the refine CLI
http://localhost:3000/posts/show/123
Properties
breadcrumbProps
<Breadcrumb>
component uses the Material UI Breadcrumb component so it can be configured with the breadcrumbProps
property.
import { List, Breadcrumb } from "@pankod/refine-mui";
export const PostList: React.FC = () => {
return (
<List breadcrumb={<Breadcrumb breadcrumbProps={{ separator: "-" }} />}>
...
</List>
);
};
showHome
If your application has a DashboardPage, the home button is shown to the top of the hierarchy by default. If you don't want to show the home button, you can set showHome
to false
.
import { List, Breadcrumb } from "@pankod/refine-mui";
export const PostList: React.FC = () => {
return <List breadcrumb={<Breadcrumb showHome={false} />}>...</List>;
};
hideIcons
If you don't want to show the resource icons on the breadcrumb, you can set hideIcons
to true
.
import { List, Breadcrumb } from "@pankod/refine-mui";
export const PostList: React.FC = () => {
return (
<List breadcrumb={<Breadcrumb hideIcons />}>...</List>;
);
};