94 Pro components and page blocks

Get Pro

Collapsing Breadcrumb

New

Preview

Customize

Width380px
Hover
Max visible0
Chevron

Installation

npx shadcn@latest add https://uibrik.com/r/collapsing-breadcrumb.json
Adds the files to components/uibrik/collapsing-breadcrumb and installs @tabler/icons-react and motion. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/collapsing-breadcrumb.

Usage

import { CollapsingBreadcrumb } from "@/components/uibrik/collapsing-breadcrumb/collapsing-breadcrumb";​const items = [  { label: "Home", href: "#", icon: <IconHome stroke={1.75} /> },  { label: "Acme Inc", href: "#" },  // …4 more];​<CollapsingBreadcrumb  items={items}  expandOn="hover"  maxVisible={0}  separator="chevron"  linkAs="a"  label="Breadcrumb"/>

Props

CollapsingBreadcrumb
expandOn
Type "hover" | "click"
"hover"
What unfolds the hidden crumbs. Click and tap always work.
maxVisible
Type number
0
Most crumbs shown while folded. 0 fits as many as the width allows.
separator
Type "chevron" | "slash"
"chevron"
Mark between crumbs.
itemsrequired
Type { label: string; href?: string; icon?: ReactNode }[]
–
The trail from the root to the current page. The last item is the current page.
linkAs
Type ElementType
"a"
Element for links, e.g. Next.js Link.
label
Type string
"Breadcrumb"
Accessible name for the nav.
className
Type string
–
Classes for the nav.