ResourceBreadcrumb

The path of a URI, as a trail you can walk back up.

import { ResourceBreadcrumb } from '@textui/documents';

<ResourceBreadcrumb uri="file:///srv/api/main.ts" root="file:///srv" />

Props

| Prop | Type | Default | | | — | — | — | — | | uri | string \| null | required | | | root | string | | | | onSelect | (uri: string) => void | | |

Plus everything on BoxProps.

Splits the URI into segments and renders them as a Breadcrumb. root trims the prefix so the trail starts at the workspace rather than at the filesystem root.

See also


Back to top

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