Navigation

Breadcrumb

Navigation helper for deeply nested content hierarchies.

Breadcrumb

Standard hierarchical navigation.

'use client'

import React from 'react'
import { Breadcrumb } from 'biibaos'
import { Home, ChevronRight } from 'lucide-react'

export default function App() {
  const items = [
    { label: 'Home', href: '/' },
    { label: 'Components', href: '/docs' },
    { label: 'Breadcrumb', active: true },
  ]

  return (
    <Breadcrumb items={items} />
  )
}

With Icons

Add icons to breadcrumb items for better visual context.

'use client'

import React from 'react'
import { Breadcrumb, Icon } from 'biibaos'
import { Home, Mail } from 'lucide-react'

export default function App() {
  return (
    <Breadcrumb
      items={[
        { label: 'Home', icon: <Icon icon={Home} size={14} />, href: '/' },
        { label: 'Files', icon: <Icon icon={Mail} size={14} />, href: '/docs' },
        { label: 'Invoice.pdf', active: true },
      ]}
    />
  )
}

Properties

PropTypeDefaultDescription
itemsBreadcrumbItemProps[]Array of item configurations with label, icon, actions, and active states
separatorReact.ReactNode<ChevronRight size={14Custom separator character or element between breadcrumb links
maxItemsnumber4Configures the maxItems option
labelReact.ReactNodePrimary text label description
iconReact.ReactNodeCustom icon prefix element
hrefstringURL address of the link. Renders as text if omitted
activebooleanHighlights the item as the current active route
onClick() => voidClick event callback handler