Fusion UI LogoFusion UI Logo
Fusion UI LogoFusion UI Logo
/
Getting Started
Concepts
Components
Example Apps
Getting Started
Concepts
Components
Example Apps
Fusion UI LogoFusion UI Logo
Getting Started
Concepts
Components
Example Apps
Overview
Actions
Button
Button Group
Segmented Button
Deprecated
Split Button
Toggle Button
Click To Copy
Toolbar
Navigation
Main Nav
Side Menu
Page Header
Tabs
Breadcrumbs
On-Page Menu
Link
Command Menu
Application Switcher
Context Switcher
Account Menu
Menu Bar
Deprecated
Inputs & Forms
Form
Form Actions
Deprecated
Form Divider
Form Field
Form Repeat
Form Spacing
Input
Prefix & Suffix
Rich Text Input
Autocomplete
Select
Date / Time Input
Calendar
Slider
Selection
Checkbox
Radio
Switch
Switch Select
Chip
Chip Choice
Chip Filter
Chip Input
Chip Sortable
Visual Select
Pricing Plan Select
Feedback & Loading
Banner
Inline Message
Snackbar
Inline Snackbar
Loading Spinner
Skeleton
Text Skeleton
Contextual Information
Badge
Status
Tag
Tooltip
Info
Hotkey
Icon
Icon Sizer
Containers & Overlays
Tile
Tile Content
Tile Footer
Tile Header
Annotated Section
Modal
Sheet
Popover
Context Menu
Data Display
Data Table
List
Timeline
Data Visualization
KPI Card
Ratio Card
Bar Chart
Line Chart
Pie Chart
Heatmap Calendar
Layout
Container
Stack Layout
Flow Layout
Internals
Blanket
Expansion Panel
Menu List Base
Menu Group
Search Bar
Components
...
Breadcrumbs

Breadcrumbs

Shows where the current page sits in the hierarchy and leads back up.

Overview

Breadcrumbs show the path from the top of the hierarchy to the current page. The order of the items is the nesting order.

Animals
...
Fish
Tuna
"use client";
import React from "react";
import {Breadcrumbs} from "@brynlabs/fusion-ui";
export const BreadcrumbsExample = () => (
<Breadcrumbs
breadcrumbs={[
{
title: "Animals",
href: "#",
},
{
title: "Fish",
href: "#",
},
{
title: "Tuna",
href: "#",
},
]}
/>
);

Overflow

When space runs out, middle items collapse into a menu and long titles are shortened in the middle, with the full title in a tooltip. Drag the handle to try it.

Breadcrumb 1
...
Breadcrumb 2
Breadcrumb 3
Breadcrumb 4
Breadcrumb 5
Breadcrumb 6
Breadcrumb 7
"use client";
import React, {useEffect, useRef, useState} from "react";
import {Breadcrumbs} from "@brynlabs/fusion-ui";
export const BreadcrumbsOverflowExample = () => {
const wrapperRef = useRef<HTMLDivElement>(null);
const [width, setWidth] = useState(600);
const [maxWidth, setMaxWidth] = useState(600);
const breadcrumbs = Array.from({length: 7}, (_, i) => ({
title: `Breadcrumb ${i + 1}`,
href: "/components/breadcrumbs",
}));
useEffect(() => {
const element = wrapperRef.current;
if (!element) return;
const updateMaxWidth = () => {
const parent = element.parentElement;
if (!parent) return;
const parentStyles = window.getComputedStyle(parent);
const parentPaddingLeft = parseFloat(parentStyles.paddingLeft) || 0;
const parentPaddingRight = parseFloat(parentStyles.paddingRight) || 0;
const availableWidth = parent.clientWidth - parentPaddingLeft - parentPaddingRight;
setMaxWidth(availableWidth);
setWidth(prev => Math.min(prev, availableWidth));
};
updateMaxWidth();
const observer = new ResizeObserver(() => {
updateMaxWidth();
});
if (element.parentElement) {
observer.observe(element.parentElement);
}
return () => observer.disconnect();
}, []);
return (
<div ref={wrapperRef} style={{display: "grid", gap: "16px", width: "100%", minWidth: 0}}>
<input
id="breadcrumbs-width-slider"
type="range"
min={0}
max={Math.floor(maxWidth)}
step={10}
value={Math.min(width, maxWidth)}
onChange={event => setWidth(Number(event.target.value))}
style={{width: "100%", minWidth: 0, appearance: "auto"}}
/>
<div
style={{
width: `${width}px`,
maxWidth: "100%",
border: "1px dashed gray",
padding: "8px",
overflow: "hidden",
boxSizing: "border-box",
minWidth: 0,
}}>
<Breadcrumbs breadcrumbs={breadcrumbs} />
</div>
</div>
);
};