-
I noticed that in the antd breadcrumbs component, there is a logic that when the component is routed to level 1, no breadcrumbs will be generated. Is this really reasonable? If I have multiple tier 1 routes and the top one is dashboard, then I will never be able to use breadcrumbs. refine/packages/antd/src/components/breadcrumb/index.tsx Lines 41 to 43 in dd7483e |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @whg517, like you've spotted in the source yourself, we have a condition to remove breadcrumb if it only has one level. We're thinking this is a more common approach 🤔 But definitely we can have a poll or something to find out what the community is thinking about it 😅 Luckily, we have an option to customize the breadcrumb easily by swizzling and assigning it globally to replace it in every component 🚀 Start with swizzling the After you customize your component, you can use the Let us know if you have any issues with the swizzle or with the global config 🙏 |
Beta Was this translation helpful? Give feedback.
Hey @whg517, like you've spotted in the source yourself, we have a condition to remove breadcrumb if it only has one level. We're thinking this is a more common approach 🤔 But definitely we can have a poll or something to find out what the community is thinking about it 😅
Luckily, we have an option to customize the breadcrumb easily by swizzling and assigning it globally to replace it in every component 🚀
Start with swizzling the
Breadcrumb
component, check out the swizzle command guide here https://refine.dev/docs/packages/documentation/cli/#usageAfter you customize your component, you can use the
options.breadcrumb
prop of<Refine>
component to override that component globally. Check o…