Breadcrumb

Where you are, and every level you can go back to.

import { Breadcrumb } from '@textui/core';

<Breadcrumb
  items={[
    { id: 'root', label: 'services' },
    { id: 'api', label: 'api' },
  ]}
  onSelect={(id) => console.log(id)}
/>

Props

| Prop | Type | Default | | | — | — | — | — | | items | { id: string; label: string; icon?: string }[] | required | | | onSelect | (id: string) => void | | | | separator | string | | | | maxItems | number | | Collapse the middle when it does not fit. |

Plus everything on BoxProps.

Role: navigation.

maxItems collapses the middle when the trail is longer than the width - first and last survive, since those are the two a reader actually uses.

The last item is where you are and is not selectable. onSelect fires for the others.

See also


Back to top

MIT licensed. Pre-1.0 - the surface is still moving.