documentation/versioned_docs/version-3.xx.xx/api-reference/antd/components/breadcrumb.md
A breadcrumb displays the current location within a hierarchy. It allows going back to states higher up in the hierarchy. <Breadcrumb> component built with Ant Design's Breadcrumb components using the useBreadcrumb hook.
:::info-tip Swizzle You can swizzle this component to customize it with the refine CLI :::
// visible-block-start
import { Show, Breadcrumb } from "@pankod/refine-antd";
const PostShow: React.FC = () => {
return (
<Show
// highlight-next-line
breadcrumb={<Breadcrumb />}
>
<p>Content of your show page...</p>
</Show>
);
};
// visible-block-end
const PostList = () => {
return (
<RefineAntd.List>
<p>Content of your list page...</p>
</RefineAntd.List>
);
};
render(
<RefineAntdDemo
initialRoutes={["/posts/show/123"]}
resources={[
{
name: "posts",
icon: (
<RefineAntd.Icons.ProfileOutlined
style={{ width: "18px", height: "18px" }}
/>
),
show: PostShow,
list: PostList,
},
]}
/>,
);
breadcrumbProps<Breadcrumb> component uses the Ant Design Breadcrumb component so it can be configured with the breadcrumbProps property.
import { List, Breadcrumb } from "@pankod/refine-antd";
export const PostList: React.FC = () => {
return (
<List
// highlight-next-line
breadcrumb={<Breadcrumb breadcrumbProps={{ separator: "-" }} />}
>
...
</List>
);
};
showHomeIf 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-antd";
export const PostList: React.FC = () => {
return (
<List
// highlight-next-line
breadcrumb={<Breadcrumb showHome={false} />}
>
...
</List>
);
};
hideIconsIf you don't want to show the resource icons on the breadcrumb, you can set hideIcons to true.
import { List, Breadcrumb } from "@pankod/refine-antd";
export const PostList: React.FC = () => {
return (
<List
// highlight-next-line
breadcrumb={<Breadcrumb hideIcons />}
>
...
</List>
);
};
<PropsTable module="@pankod/refine-antd/Breadcrumb" breadcrumbProps-type="[BreadcrumbProps](https://ant.design/components/breadcrumb/#API)" breadcrumbProps-description="Passes properties for [`<Breadcrumb>`](https://ant.design/components/breadcrumb/#Breadcrumb)" />