Skip to Content
DocsResourcesPricingShowcase

Breadcrumb

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

SourceStorybookRecipe

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>

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

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

Use the separator prop to add the separator

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

Compose the breadcrumb with menu component

Render the BreadcrumbEllipsis component to show an ellipsis

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>

PropDefaultType
colorPalette 'gray'
'gray' | 'red' | 'orange' | 'yellow' | 'green' | 'teal' | 'blue' | 'cyan' | 'purple' | 'pink' | 'accent'

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