Breadcrumbs with static data
Not a full project, but I'm really proud of my breadcrumbs implementation:
8 Replies
complex-teal•3mo ago
it starts with defining an optional breadcrumb o nthe route
which can be used like incrementally, and then the snippet above is at my _layout.tsx. Combined with the Link data-status, becoems quite easy to make something that looks good with just a few dozen lines of code:

absent-sapphire•3mo ago
Nice! How do you use it? Ie. on the route level?
complex-teal•3mo ago
yes!
it's very plug and play, so I will put this snippet in a few pathless layouts. I cant put it in a single one since i have a bit of a design going on 😅
absent-sapphire•3mo ago
I mean, how do you set the breadcrumb static data on the route itself?
complex-teal•3mo ago
here you go:
absent-sapphire•3mo ago
Thanks!
fascinating-indigo•3mo ago
hi @pupo ! this seems pretty good, but how about dynamic crumbs (that may depend on the loader or path params) ?
complex-teal•3mo ago
@notKamui hey! Sadly... no solution. I hit the same problem as well, and i haven't given it a second thought yet. I'm afraid I will go back to "plan A" and use some sort of context to move the information up the ladder