Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 959 Bytes

File metadata and controls

35 lines (25 loc) · 959 Bytes
title ResourceBreadcrumb
parent Surfaces, shells and resources
grand_parent Components

ResourceBreadcrumb

{: .no_toc }

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