Breadcrumb
The Breadcrumb
component is a simple spacer tool. It allows sibling HTML elements to have a consistent margin between them.
Example #
The Breadcrumb component is a simple spacer tool. It allows sibling HTML elements to have a consistent margin between them.
<Breadcrumb>
<BreadcrumbItem Href="#">BlazorExpress.Bulma</BreadcrumbItem>
<BreadcrumbItem Href="#">Demos</BreadcrumbItem>
<BreadcrumbItem Href="#">Components</BreadcrumbItem>
<BreadcrumbItem Href="#" IsActive="true">Breadcrumb</BreadcrumbItem>
</Breadcrumb>
Alignment #
By default, the
Breadcrumb
component aligns its children to the left.
For alternate alignment use the Alignment
parameter. The Alignment parameter accepts the following values: Default, Center, and Right.
<Breadcrumb>
<BreadcrumbItem Href="#">BlazorExpress.Bulma</BreadcrumbItem>
<BreadcrumbItem Href="#">Demos</BreadcrumbItem>
<BreadcrumbItem Href="#">Components</BreadcrumbItem>
<BreadcrumbItem Href="#" IsActive="true">Breadcrumb</BreadcrumbItem>
</Breadcrumb>
In the following examples, the
Breadcrumb
component is aligned to the center.
For this to work, the Alignment
parameter must be set to Center.
<Breadcrumb Alignment="BreadcrumbAlignment.Center">
<BreadcrumbItem Href="#">BlazorExpress.Bulma</BreadcrumbItem>
<BreadcrumbItem Href="#">Demos</BreadcrumbItem>
<BreadcrumbItem Href="#">Components</BreadcrumbItem>
<BreadcrumbItem Href="#" IsActive="true">Breadcrumb</BreadcrumbItem>
</Breadcrumb>
In the following examples, the
Breadcrumb
component is aligned to the right.
For this to work, the Alignment
parameter must be set to Right.
<Breadcrumb Alignment="BreadcrumbAlignment.Right">
<BreadcrumbItem Href="#">BlazorExpress.Bulma</BreadcrumbItem>
<BreadcrumbItem Href="#">Demos</BreadcrumbItem>
<BreadcrumbItem Href="#">Components</BreadcrumbItem>
<BreadcrumbItem Href="#" IsActive="true">Breadcrumb</BreadcrumbItem>
</Breadcrumb>
Icons #
You can add icons to the
Breadcrumb
component.
Add BootstrapIcon
or GoogleFontIcon
to the BreadcrumbItem
component as a child content.
In the following example, Bootstrap icons are used.
<Breadcrumb>
<BreadcrumbItem Href="#">
<BootstrapIcon Name="BootstrapIconName.HouseDoorFill">
BlazorExpress.Bulma
</BootstrapIcon>
</BreadcrumbItem>
<BreadcrumbItem Href="#">
<BootstrapIcon Name="BootstrapIconName.LaptopFill">
Demos
</BootstrapIcon>
</BreadcrumbItem>
<BreadcrumbItem Href="#">
<BootstrapIcon Name="BootstrapIconName.PuzzleFill">
Components
</BootstrapIcon>
</BreadcrumbItem>
<BreadcrumbItem Href="#" IsActive="true">
<BootstrapIcon Name="BootstrapIconName.HandThumbsUpFill">
Breadcrumb
</BootstrapIcon>
</BreadcrumbItem>
</Breadcrumb>
In the following example, Google Font icons are used.
<Breadcrumb>
<BreadcrumbItem Href="#">
<GoogleFontIcon Name="GoogleFontIconName.Home">
BlazorExpress.Bulma
</GoogleFontIcon>
</BreadcrumbItem>
<BreadcrumbItem Href="#">
<GoogleFontIcon Name="GoogleFontIconName.Computer">
Demos
</GoogleFontIcon>
</BreadcrumbItem>
<BreadcrumbItem Href="#">
<GoogleFontIcon Name="GoogleFontIconName.Extension">
Components
</GoogleFontIcon>
</BreadcrumbItem>
<BreadcrumbItem Href="#" IsActive="true">
<GoogleFontIcon Name="GoogleFontIconName.ThumbUp">
Breadcrumb
</GoogleFontIcon>
</BreadcrumbItem>
</Breadcrumb>
Alternative seperators #
You can change the default separator between
BreadcrumbItem
components.
Use the Separator
parameter to change the separator.
The Separator
parameter accepts the following values: Arrow, Bullet, Dot, and Succeeds.
In the following example, the separator is set to Arrow.
<Breadcrumb Separator="BreadcrumbSeparator.Arrow">
<BreadcrumbItem Href="#">BlazorExpress.Bulma</BreadcrumbItem>
<BreadcrumbItem Href="#">Demos</BreadcrumbItem>
<BreadcrumbItem Href="#">Components</BreadcrumbItem>
<BreadcrumbItem Href="#" IsActive="true">Breadcrumb</BreadcrumbItem>
</Breadcrumb>
In the following example, the separator is set to Bullet.
<Breadcrumb Separator="BreadcrumbSeparator.Bullet">
<BreadcrumbItem Href="#">BlazorExpress.Bulma</BreadcrumbItem>
<BreadcrumbItem Href="#">Demos</BreadcrumbItem>
<BreadcrumbItem Href="#">Components</BreadcrumbItem>
<BreadcrumbItem Href="#" IsActive="true">Breadcrumb</BreadcrumbItem>
</Breadcrumb>
In the following example, the separator is set to Dot.
<Breadcrumb Separator="BreadcrumbSeparator.Dot">
<BreadcrumbItem Href="#">BlazorExpress.Bulma</BreadcrumbItem>
<BreadcrumbItem Href="#">Demos</BreadcrumbItem>
<BreadcrumbItem Href="#">Components</BreadcrumbItem>
<BreadcrumbItem Href="#" IsActive="true">Breadcrumb</BreadcrumbItem>
</Breadcrumb>
In the following example, the separator is set to Succeeds.
<Breadcrumb Separator="BreadcrumbSeparator.Succeeds">
<BreadcrumbItem Href="#">BlazorExpress.Bulma</BreadcrumbItem>
<BreadcrumbItem Href="#">Demos</BreadcrumbItem>
<BreadcrumbItem Href="#">Components</BreadcrumbItem>
<BreadcrumbItem Href="#" IsActive="true">Breadcrumb</BreadcrumbItem>
</Breadcrumb>
Sizes #
The
Breadcrumb
component has three sizes: Small, Medium, and Large.
Use the Size
parameter to change the size.
In the following example, the size is set to Small.
<Breadcrumb Size="BreadcrumbSize.Small">
<BreadcrumbItem Href="#">BlazorExpress.Bulma</BreadcrumbItem>
<BreadcrumbItem Href="#">Demos</BreadcrumbItem>
<BreadcrumbItem Href="#">Components</BreadcrumbItem>
<BreadcrumbItem Href="#" IsActive="true">Breadcrumb</BreadcrumbItem>
</Breadcrumb>
In the following example, the size is set to Medium.
<Breadcrumb Size="BreadcrumbSize.Medium">
<BreadcrumbItem Href="#">BlazorExpress.Bulma</BreadcrumbItem>
<BreadcrumbItem Href="#">Demos</BreadcrumbItem>
<BreadcrumbItem Href="#">Components</BreadcrumbItem>
<BreadcrumbItem Href="#" IsActive="true">Breadcrumb</BreadcrumbItem>
</Breadcrumb>
In the following example, the size is set to Large.
<Breadcrumb Size="BreadcrumbSize.Large">
<BreadcrumbItem Href="#">BlazorExpress.Bulma</BreadcrumbItem>
<BreadcrumbItem Href="#">Demos</BreadcrumbItem>
<BreadcrumbItem Href="#">Components</BreadcrumbItem>
<BreadcrumbItem Href="#" IsActive="true">Breadcrumb</BreadcrumbItem>
</Breadcrumb>