Breadcrumbs with static data
Not a full project, but I'm really proud of my breadcrumbs implementation:
8 Replies
foreign-sapphire•4mo 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:

wise-white•4mo ago
Nice! How do you use it? Ie. on the route level?
foreign-sapphire•4mo 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 😅
wise-white•4mo ago
I mean, how do you set the breadcrumb static data on the route itself?
foreign-sapphire•4mo ago
here you go:
wise-white•4mo ago
Thanks!
genetic-orange•4mo ago
hi @pupo ! this seems pretty good, but how about dynamic crumbs (that may depend on the loader or path params) ?
foreign-sapphire•4mo 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