Skip to Content
Documentation
Saas UI
Get Pro
Getting started
Components
Overview

Breadcrumb

Used to display a page's location within a site's hierarchical structure

SourceStorybookRecipe

Anatomy

import { Breadcrumb } from '@saas-ui/react/breadcrumb'
<Breadcrumb.Root separator="/">
  <Breadcrumb.Link href="#">Workspace</Breadcrumb.Link>
  <Breadcrumb.Ellipsis />
  <Breadcrumb.CurrentLink>Projects</Breadcrumb.CurrentLink>
</Breadcrumb.Root>

Examples

Sizes

Use the size prop to change the size of the breadcrumb component

Variants

Use the variant prop to change the appearance of the breadcrumb component

With Separator

Use the separator prop to add the separator

Icon

Here's how you can add an icon to the breadcrumb

Compose the breadcrumb with menu component

Ellipsis

Render the BreadcrumbEllipsis component to show an ellipsis

Routing Library

Use the asChild prop to change the underlying breadcrumb link

// import { Link } from "next/link"

<BreadcrumbRoot>
  <BreadcrumbLink asChild>
    <Link href="/docs">Docs</Link>
  </BreadcrumbLink>
</BreadcrumbRoot>

Props

Root

PropDefaultType
colorPalette 'gray'
'gray' | 'zinc' | 'neutral' | 'stone' | 'red' | 'orange' | 'amber' | 'yellow' | 'lime' | 'green' | 'emerald' | 'teal' | 'cyan' | 'sky' | 'blue' | 'indigo' | 'violet' | 'purple' | 'fuchsia' | 'pink' | 'rose' | 'presence' | 'status' | 'sidebar' | 'sidebar.accent' | 'accent' | 'slate'

The color palette of the component

variant 'plain'
'underline' | 'plain'

The variant of the component

size 'md'
'sm' | 'md' | 'lg'

The size of the component

separator
React.ReactNode

separatorGap
SystemStyleObject['gap']

as
React.ElementType

The underlying element to render.

asChild
boolean

Use the provided child element as the default rendered element, combining their props and behavior.

For more details, read our Composition guide.
unstyled
boolean

Whether to remove the component's style.

Previous

Badge

Next

Button