Overview
Good customizes the
Bootstrap Breadcrumb through the SASS variables in
src/sass/components/_variables.scss
and adds additonal options in
src/sass/components/_breadcrumb.scss
.
Basic
Use an ordered or unordered list with linked list items to create a minimally styled breadcrumb. Use our utilities to add additional styles as desired.
copy
<ol class="breadcrumb text-muted fs-6 fw-bold">
<li class="breadcrumb-item pe-3"><a href="#" class="pe-3">Home</a></li>
<li class="breadcrumb-item pe-3"><a href="#" class="pe-3">Library</a></li>
<li class="breadcrumb-item px-3 text-muted">Active</li>
</ol>
Line Separator
Add
.breadcrumb-line
to enable line separator style for a breadcrumb.
copy
<ol class="breadcrumb breadcrumb-line text-muted fs-6 fw-bold">
<li class="breadcrumb-item pe-3"><a href="#" class="pe-3">Home</a></li>
<li class="breadcrumb-item pe-3"><a href="#" class="pe-3">Library</a></li>
<li class="breadcrumb-item px-3 text-muted">Active</li>
</ol>
Dot Separator
Add
.breadcrumb-dot
to enable dot separator style for a breadcrumb.
copy
<ol class="breadcrumb breadcrumb-dot text-muted fs-6 fw-bold">
<li class="breadcrumb-item pe-3"><a href="#" class="pe-3">Home</a></li>
<li class="breadcrumb-item pe-3"><a href="#" class="pe-3">Library</a></li>
<li class="breadcrumb-item px-3 text-muted">Active</li>
</ol>
Without Separator
Add
.breadcrumb-separatorless
to remove the separator.
copy
<ol class="breadcrumb breadcrumb-separatorless text-muted fs-6 fw-bold">
<li class="breadcrumb-item pe-3"><a href="#" class="pe-3">Home</a></li>
<li class="breadcrumb-item pe-3"><a href="#" class="pe-3">Library</a></li>
<li class="breadcrumb-item px-3 text-muted">Active</li>
</ol>