Blazor Breadcrumb - Overview
- EXAMPLE
- VIEW SOURCE
- EDIT IN TELERIK REPL
- Change Theme
default
- Overview.razor
The Breadcrumb component is part of Telerik UI for Blazor, a professional grade UI library with 110+ native components for building modern and feature-rich applications. To try it out sign up for a free 30-day trial.
Description
The Telerik UI for Blazor Breadcrumb component allows you to navigate within a folder structure or a web page. It enables you to implement backward navigation to provide users with an easy way to go back one or multiple steps by leaving a “trail” of horizontal links to each page that came before it. This component doesn’t only automatically generate breadcrumbs for you, it allows you to customize the appearance of the entire component or individual nodes, insert icons or use the API to respond to fired events.
The above demo is an example of using the BreadCrum component to implement a secondary website navigation menu in a Blazor application. For this fictional technology store, the user has navigated five pages into the website, drilling down to Gaming Keyboards. They can easily navigate back to one of the parent pages by clicking its name. If you look at the source code in the “View Source” tab, you will see that the breadcrumb items are manually defined. A more common scenario is to generate the items automatically through data or property binding. You will also see that the creator has decided to use an icon for the “Home” item, but only text for the rest. You could use icons for all the items. You could also choose a different separator or collapse the parent nodes (a feature very useful on small screens). Additionally, templates can be used to transform the Blazor Breadcrumb items into buttons or to apply virtually any style you like.