Skip to content

how to generate breadcrumbs for one-level menu #5108

Answered by aliemir
whg517 asked this question in Q&A
Discussion options

You must be logged in to vote

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/#usage

After you customize your component, you can use the options.breadcrumb prop of <Refine> component to override that component globally. Check o…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@whg517
Comment options

Answer selected by whg517
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants