Search the documentation

Type to search page titles, component names and descriptions.

    Navigation

    Breadcrumbs

    Where a screen sits in its hierarchy.

    import { Breadcrumbs } from 'faifo-design'

    Breadcrumbs lists the ancestors of the current screen as links and ends with the current place.

    #When to use

    • Use it when a screen has a real parent the reader may return to.
    • Do not use it to show progress through steps; that is a StagePath.

    #Examples

    Each example is a specimen of the package catalogue, rendered on the server exactly as shown in its code.

    #Navigation and tabs

    Faifo Blue marks the active item in both vertical and horizontal navigation.

    The active panel owns vertical rhythm and scrolling, without horizontal padding.

    Show codeHide code
    import { Breadcrumbs, Icon, NavList, Stack, TabbedView } from 'faifo-design'
    
    export const Example = () => (
      <Stack
        items={[
          <Breadcrumbs
            label="Current location"
            maxItems={3}
            overflowLabel="Show intermediate locations"
            items={[
              { label: 'Workspace', href: '#navigation-items' },
              { label: 'Sales', href: '#navigation-items' },
              { label: 'South region', href: '#navigation-items' },
              { label: 'Orders' },
            ]}
          />,
          <NavList
            label="Product"
            items={[
              {
                label: 'Details',
                href: '#navigation-items',
                leading: <Icon name="file-text" />,
                active: true,
              },
              {
                label: 'Variants',
                href: '#navigation-items',
                leading: <Icon name="layers-3" />,
                count: 12,
              },
              { label: 'Inventory', href: '#navigation-items', leading: <Icon name="package" /> },
            ]}
          />,
          <TabbedView
            id="catalogue-record-views"
            label="Record views"
            items={[
              { id: 'summary', label: 'Summary', href: '#navigation-items', active: true },
              { id: 'activity', label: 'Activity', href: '#navigation-items', count: 8 },
              { id: 'files', label: 'Files', href: '#navigation-items', count: 3 },
            ]}
            body={<p>The active panel owns vertical rhythm and scrolling, without horizontal padding.</p>}
            extension={
              <a data-ui="tab" href="#navigation-items">
                Extension
              </a>
            }
          />,
        ]}
      />
    )

    #API

    Generated from the package source. A property without a description has none in the source yet.

    #BreadcrumbsComponent

    PropertyDescriptionTypeDefault
    labelrequired–string–
    itemsrequired–readonly BreadcrumbItem[]–
    maxItemsKeep the first and current locations visible; put intermediate ancestors in a native disclosure.number–
    overflowLabelAccessible label for the collapsed ancestor trigger, supplied in the application's locale.string–

    #Types

    #BreadcrumbItem

    PropertyDescriptionTypeDefault
    id–string–
    labelrequired–string–
    href–string–

    #BreadcrumbsProps

    The properties of Breadcrumbs, listed above.