Skip to main content
twblazor
Home
  • Get started
  • Tailwind with Blazor
  • Why twblazor?
  • Theme
  • Class Merge
    • Configuring localization
    • RTL Provider
  • Breadcrumb
  • Card
  • Carousel
  • Collapse
  • Context Menu
  • Drawer
  • Footer
  • Menu
  • Navbar
  • On This Page
  • Separator
  • Sidebar
  • Stepper
  • Tabs
  • Tree List
  • Container
  • Flex
  • Grid
  • Text
  • Link
  • Button
  • Form
    • AutocompleteNew
    • Checkbox
    • Color Picker
    • Date Picker
    • Date Range Picker
    • Datetime Picker
    • Datetime Range Picker
    • File Upload
    • Input GroupNew
    • NumericNew
    • Masked InputNew
    • Radio Button
    • Range SliderNew
    • RatingNew
    • Select
    • Slider
    • Switch
    • Tag InputNew
    • Text EditorNew
    • Textfield
    • Time Picker
    • Time Range Picker
  • Toggle
  • Toggle Group
  • Alert
  • Avatar
  • Badge
  • Chip
  • Empty
  • Icon
  • Popover
  • Progress
  • Skeleton
  • Spinner
  • Tooltip
  • Data Table
  • SpreadsheetNew
  • Column Filter Editor
  • Pagination
  • Pick List
  • Barcode
  • QR Code
  • Calendar
  • Table
  • Attachment
  • Overview
    • Bar
    • Bullet
    • Column
    • Dot Plot
    • Dumbbell
    • Icon
    • Lollipop
    • Radial Bar
    • Range
    • Word Cloud
    • Area
    • Bump
    • Bump Area
    • Candlestick
    • Gantt
    • Horizon
    • Line
    • Slope
    • Small Multiples
    • Stream Graph
    • Funnel
    • Gauge
    • Marimekko
    • Nightingale
    • Pie
    • Treemap
    • Waffle
    • Waterfall
    • Circular Treemap
    • Convex Treemap
    • Dendrogram
    • Sunburst
    • Barcode
    • Beeswarm
    • Box Plot
    • Density Plot
    • Histogram
    • Radial Histogram
    • Ridgeline
    • Strip Plot
    • Violin Plot
    • Categorical Scatter
    • Contour
    • Hexagonal Binning
    • Quadrant
    • Scatter
    • Heatmap
    • Matrix
    • Parallel Coordinates
    • Radar
    • Arc Diagram
    • Chord Diagram
    • Flowchart
    • Network Diagram
    • Sankey
    • Euler Diagram
    • Venn Diagram
  • Bubble
  • Marker
  • Message
  • Dialog Service
  • Toast Service
API DocumentationAI Agents & Skills
Home Get Started

Layout

TwBreadcrumb

TwBreadcrumb is a Blazor breadcrumb component that shows the current page location. Build trails automatically with Auto, or manually with Label, Href and Icon.

Last updated 18 October 2026

Breadcrumbs

Usage of breadcrumb is simplified, you can use the component and allow for automatic breadcrumbs based on the current uri structure:
  1. breadcrumb
RAZOR
<TwBreadcrumb Auto />

Manual breadcrumbs

You can also manually configure the breadcrumbs. Give an item an Icon to show it before the label, and set AriaCurrent on the last one to mark it as the current page: it is then shown as text, not a link, and announced as the current page by screen readers.
  1. Home
  2. /Settings
  3. /Profile
RAZOR
<TwBreadcrumb Breadcrumbs="@_breadcrumbs" />
CSHARP
@code {
    private readonly List<BreadcrumbItem> _breadcrumbs = new()
    {
        new()
        {
            Icon = Icon.House,
            Label = "Home",
            Href = "/"
        },
        new ()
        {
            Icon = Icon.Gear,
            Label = "Settings",
            Href = "/"
        },
        new ()
        {
            Icon = Icon.Person,
            Label = "Profile",
            Href = "/",
            AriaCurrent = true
        }
    };
}

Inline breadcrumbs

You can also manually configure the breadcrumbs inline like so:
  1. Home
  2. /Docs
  3. /Breadcrumb
RAZOR
<TwBreadcrumb>
    <TwBreadcrumbItem Label="Home" Href="/" Icon="Icon.House" />
    <TwBreadcrumbItem Label="Docs" Href="/" />
    <TwBreadcrumbItem Label="Breadcrumb" Href="/breadcrumb" Icon="Icon.Segmented_Nav" AriaCurrent />
</TwBreadcrumb>

Custom separators

The separator between breadcrumbs is a / by default. Set Separator to use any other text, such as a dot:
  1. Home
  2. •Docs
  3. •Breadcrumb
RAZOR
<TwBreadcrumb Separator="•">
    <TwBreadcrumbItem Label="Home" Href="/" />
    <TwBreadcrumbItem Label="Docs" Href="/" />
    <TwBreadcrumbItem Label="Breadcrumb" Href="/breadcrumb" AriaCurrent />
</TwBreadcrumb>

Set SeparatorIcon to use an icon instead, such as a chevron or an arrow. It works with Breadcrumbs and Auto as well as inline items:

  1. Home
  2. Docs
  3. Breadcrumb
RAZOR
<TwBreadcrumb SeparatorIcon="Icon.Chevron_Right">
    <TwBreadcrumbItem Label="Home" Href="/" Icon="Icon.House" />
    <TwBreadcrumbItem Label="Docs" Href="/" />
    <TwBreadcrumbItem Label="Breadcrumb" Href="/breadcrumb" AriaCurrent />
</TwBreadcrumb>
  1. Home
  2. Settings
  3. Profile
RAZOR
<TwBreadcrumb Breadcrumbs="@_breadcrumbs" SeparatorIcon="Icon.Arrow_Right" />

A TwBreadcrumbItem can set its own Separator or SeparatorIcon, which is shown before that item only. Separators are decorative, so they are hidden from screen readers, which already announce the trail as a list.

  1. Home
  2. •Docs
  3. Breadcrumb
RAZOR
<TwBreadcrumb Separator="•">
    <TwBreadcrumbItem Label="Home" Href="/" />
    <TwBreadcrumbItem Label="Docs" Href="/" />
    <TwBreadcrumbItem Label="Breadcrumb" Href="/breadcrumb" SeparatorIcon="Icon.Arrow_Right" AriaCurrent />
</TwBreadcrumb>

Keyboard navigation

The breadcrumb is a navigation landmark holding ordinary links. The current page is text, not a link.
Key What it does
Tab Moves to the next link.
Enter Follows the focused link.

Theme configuration

Styling is controlled by TwBlazorTheme.Components (a TwBreadcrumbTheme), configured via the AddTwBlazor() options callback described on the Get Started page. Every property is a set of Tailwind classes, so changes are picked up by your own Tailwind build.
Property Type Controls
List string
Item string
Separator string
SeparatorIcon string
Label string
Link string
Current string
Icon string
CurrentIcon string

Full reference: TwBreadcrumbTheme on the API docs.

On this page

  • Breadcrumbs
  • Manual breadcrumbs
  • Inline breadcrumbs
  • Custom separators
  • Keyboard navigation
  • Theme configuration
twblazor

The Tailwind CSS component library for Blazor. Accessible, themeable and MIT licensed.

Discord (opens in a new tab) GitHub(opens in a new tab)

Get started

  • Install guide
  • Theming
  • Class merging
  • Localization

Guides

  • Tailwind CSS with Blazor
  • Why twblazor?
  • Right to left
  • AI agents and skills

Resources

  • API documentation (opens in a new tab)
  • llms.txt (opens in a new tab)
  • MIT License (opens in a new tab)

Community

  • Contributing (opens in a new tab)
  • Code of conduct (opens in a new tab)
  • Report an issue (opens in a new tab)

twblazor is and always will be free and open source.

An unhandled error has occurred. Reload