Breadcrumb
Contrast Angular Bootstrap Breadcrumb
Contrast Angular Bootstrap Breadcrumb reveals the user’s location in a website or web application. It's a navigational component that allows website visitors or web application users to track their current location and previous navigated page(s).
Importing the Contrast Angular Bootstrap Breadcrumb Module
To use the Contrast Angular Bootstrap Breadcrumb component in your project you need to import BreadcrumbModule
.
import {BreadcrumbModule } from 'cdbangular';
Default Breadcrumb
HTML
<CDBBreadcrumb color="none"> <li class="breadcrumb-item"> <CDBLink class="p-0" to="/breadcrumb">Home</CDBLink> </li> <li class="breadcrumb-item"> <CDBLink class="p-0" to="/breadcrumb">Library</CDBLink> </li> <li class="breadcrumb-item active">Data</li></CDBBreadcrumb><CDBBreadcrumb color="none"> <li class="breadcrumb-item"> <CDBLink class="p-0" to="/breadcrumb">Home</CDBLink> </li> <li class="breadcrumb-item active">Library</li></CDBBreadcrumb><CDBBreadcrumb color="none"> <li class="breadcrumb-item active">Home</li></CDBBreadcrumb>
Breadcrumb with Icons
HTNL
<CDBBreadcrumb color="none" class="align-items-center"> <li class="breadcrumb-item"> <CDBLink class="p-0" to="/breadcrumb">Home</CDBLink> </li> <CDBIcon class="mx-2 text-muted" [fas]=true icon="angle-double-right"></CDBIcon> <li class="breadcrumb-item"> <CDBLink class="p-0" to="/breadcrumb">Library</CDBLink> </li> <CDBIcon class="mx-2 text-muted" [fas]=true icon="angle-double-right"></CDBIcon> <li class="breadcrumb-item active">Data</li></CDBBreadcrumb><CDBBreadcrumb color="none" class="align-items-center"> <li class="breadcrumb-item"> <CDBLink class="p-0" to="/breadcrumb">Home</CDBLink> </li> <CDBIcon class="mx-2 text-muted" [fas]=true icon="angle-double-right"></CDBIcon> <li class="breadcrumb-item active">Library</li></CDBBreadcrumb><CDBBreadcrumb color="none"> <li class="breadcrumb-item active">Home</li></CDBBreadcrumb>
Breadcrumb with colors
HTML
<CDBBreadcrumb color="dark" class="align-items-center text-white"> <li class="breadcrumb-item"> <CDBLink class="p-0 text-white" to="/breadcrumb">Home</CDBLink> </li> <CDBIcon class="mx-2 text-muted" [fas]=true icon="angle-double-right"></CDBIcon> <li class="breadcrumb-item"> <CDBLink class="p-0 text-white" to="/breadcrumb">Library</CDBLink> </li> <CDBIcon class="mx-2 text-muted" [fas]=true icon="angle-double-right"></CDBIcon> <li class="breadcrumb-item">Data</li></CDBBreadcrumb><CDBBreadcrumb class="align-items-center"> <li class="breadcrumb-item"> <CDBLink class="p-0 text-white" to="/breadcrumb">Home</CDBLink> </li> <CDBIcon class="mx-2 text-muted" [fas]=true icon="angle-double-right"></CDBIcon> <li class="breadcrumb-item">Library</li></CDBBreadcrumb><CDBBreadcrumb color="info"> <li class="breadcrumb-item">Home</li></CDBBreadcrumb>
API Reference: Contrast Angular Bootstrap Breadcrumb Props
This section will build on your information about the props you get to use with the Contrast Angular Bootstrap Breadcrumb component. You will find out what these props do, their default values, and how you would use them in your code.
The table below lists other prop options of the CDBBreadcrumb
component.
Name | Type | Default | Description | Example |
---|---|---|---|---|
class | String | Adds custom classes | class="myClass" | |
color | String | primary | Determines breadcrumb background color, accepts CDB predefined color classes: primary secondary success danger warning info light dark | color="primary" |
light | Boolean | false | Sets font color to white | color="dark" light=true |
uppercase | Boolean | false | Transforms breadcrumbs text to uppercase | color="secondary" uppercase=true |
Build modern projects using Bootstrap 5 and Contrast
Trying to create components and pages for a web app or website from
scratch while maintaining a modern User interface can be very tedious.
This is why we created Contrast, to help drastically reduce the amount of time we spend doing that.
so we can focus on building some other aspects of the project.
Contrast Bootstrap PRO consists of a Premium UI Kit Library featuring over 10000+ component variants.
Which even comes bundled together with its own admin template comprising of 5 admin dashboards and 23+ additional admin and multipurpose pages for
building almost any type of website or web app.
See a demo and learn more about Contrast Bootstrap Pro by clicking here.
![ad-banner](/static/contrast-bootstrap5-dcbb495f3a01b026b6ca1b500a967e79.png)