Breadcrumbs are a type of navigation element that is often used in blog posts to help users understand the hierarchical structure of the content and to easily move between different sections of the post.
The primary purpose of breadcrumbs in a blog post is to improve the user experience by making it easier for the reader to navigate the content. They provide a clear and intuitive way for the reader to understand the hierarchical structure of the post, and to quickly move between different sections or levels of the content.
In addition to improving the user experience, breadcrumbs can also help improve the search engine optimization (SEO) of a blog post. By providing a clear and structured hierarchy of the content, breadcrumbs can make it easier for search engines to crawl and index the post, which can improve its ranking in search results.
We've sprinkled in a little microdata magic into the component to make them even more effective from an SEO standpoint.
You might want to edit this component slightly for single page application use e.g. use
the Link
component instead of a plain anchor tag in Next.js.
Because we don't know which React framework you'll be using, we leave it as a plain anchor tag initially.
Name | Type | Default | Description |
breadcrumbs | Array of objects | [] | Each object in the array should contain a label and an href (both strings). If the href is `/` (home) then a home icon will be shown like the preview above. |