Skip to content
Entangle UI v0.13.0

PathBar

PathBar(__namedParameters): ReactElement

Defined in: src/components/navigation/PathBar/PathBar.tsx:44

File-path breadcrumbs, like the VS Code editor breadcrumb bar.

PathBar specializes Breadcrumbs: give it a path — a delimited string or a structured segment array — and it renders each segment as a crumb. Folder crumbs navigate on click (onNavigate); the final segment is the current location. Provide getSiblings to add a VS-Code-style dropdown that swaps a segment for one of its siblings. Long paths reuse the Breadcrumbs collapse / ellipsis machinery via maxItems.

The current path is controllable: pass value to drive it, or defaultValue to let PathBar track it (clicking an ancestor truncates the trail).

string

string

string

Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.

Booleanish

Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.

"none" | "inline" | "both" | "list"

Indicates whether inputting text could trigger display of one or more predictions of the user’s intended value for an input and specifies how predictions would be presented if they are made.

string

Defines a string value that labels the current element, which is intended to be converted into Braille.

See

aria-label.

string

Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille.

See

aria-roledescription.

Booleanish

boolean | "mixed" | "false" | "true"

Indicates the current “checked” state of checkboxes, radio buttons, and other widgets.

See

  • aria-pressed
  • aria-selected.

number

Defines the total number of columns in a table, grid, or treegrid.

See

aria-colindex.

number

Defines an element’s column index or position with respect to the total number of columns within a table, grid, or treegrid.

See

  • aria-colcount
  • aria-colspan.

string

Defines a human readable text alternative of aria-colindex.

See

aria-rowindextext.

number

Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.

See

  • aria-colindex
  • aria-rowspan.

string

Identifies the element (or elements) whose contents or presence are controlled by the current element.

See

aria-owns.

boolean | "location" | "page" | "false" | "true" | "step" | "date" | "time"

Indicates the element that represents the current item within a container or set of related elements.

string

Identifies the element (or elements) that describes the object.

See

aria-labelledby

string

Defines a string value that describes or annotates the current element.

See

related aria-describedby.

string

Identifies the element that provides a detailed, extended description for the object.

See

aria-describedby.

Booleanish

Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.

See

  • aria-hidden
  • aria-readonly.

"none" | "link" | "copy" | "move" | "execute" | "popup"

Indicates what functions can be performed when a dragged object is released on the drop target.

string

Identifies the element that provides an error message for the object.

See

  • aria-invalid
  • aria-describedby.

Booleanish

Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.

string

Identifies the next element (or elements) in an alternate reading order of content which, at the user’s discretion, allows assistive technology to override the general default of reading in document source order.

Booleanish

Indicates an element’s “grabbed” state in a drag-and-drop operation.

boolean | "grid" | "listbox" | "menu" | "false" | "true" | "dialog" | "tree"

Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.

Booleanish

Indicates whether the element is exposed to an accessibility API.

See

aria-disabled.

boolean | "false" | "true" | "grammar" | "spelling"

Indicates the entered value does not conform to the format expected by the application.

See

aria-errormessage.

string

Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.

string

Defines a string value that labels the current element.

See

aria-labelledby.

string

Identifies the element (or elements) that labels the current element.

See

aria-describedby.

number

Defines the hierarchical level of an element within a structure.

"off" | "assertive" | "polite"

Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.

Booleanish

Indicates whether an element is modal when displayed.

Booleanish

Indicates whether a text box accepts multiple lines of input or only a single line.

Booleanish

Indicates that the user may select more than one item from the current selectable descendants.

"horizontal" | "vertical"

Indicates whether the element’s orientation is horizontal, vertical, or unknown/ambiguous.

string

Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship between DOM elements where the DOM hierarchy cannot be used to represent the relationship.

See

aria-controls.

string

Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format.

number

Defines an element’s number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.

See

aria-setsize.

boolean | "mixed" | "false" | "true"

Indicates the current “pressed” state of toggle buttons.

See

  • aria-checked
  • aria-selected.

Booleanish

Indicates that the element is not editable, but is otherwise operable.

See

aria-disabled.

"text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals"

Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.

See

aria-atomic.

Booleanish

Indicates that user input is required on the element before a form may be submitted.

string

Defines a human-readable, author-localized description for the role of an element.

number

Defines the total number of rows in a table, grid, or treegrid.

See

aria-rowindex.

number

Defines an element’s row index or position with respect to the total number of rows within a table, grid, or treegrid.

See

  • aria-rowcount
  • aria-rowspan.

string

Defines a human readable text alternative of aria-rowindex.

See

aria-colindextext.

number

Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.

See

  • aria-rowindex
  • aria-colspan.

Booleanish

Indicates the current “selected” state of various widgets.

See

  • aria-checked
  • aria-pressed.

number

Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.

See

aria-posinset.

"none" | "ascending" | "descending" | "other"

Indicates if items in a table or grid are sorted in ascending or descending order.

number

Defines the maximum allowed value for a range widget.

number

Defines the minimum allowed value for a range widget.

number

Defines the current value for a range widget.

See

aria-valuetext.

string

Defines the human readable text alternative of aria-valuenow for a range widget.

"none" | string & object | "off" | "on" | "sentences" | "words" | "characters"

string

boolean

string

ReactNode

string

Additional CSS class names

string

string

"inherit" | Booleanish | "plaintext-only"

string

{ __html: string | TrustedHTML; }

string | TrustedHTML

string

boolean

PathInput

Uncontrolled initial path. PathBar then tracks the current path itself: navigating to an ancestor truncates the trail; picking a sibling swaps the segment.

string = '/'

Delimiter used to split string paths and to join cumulative navigation values.

Default

"/"

string

Booleanish

"search" | "next" | "enter" | "done" | "go" | "previous" | "send"

boolean

Render the ellipsis as a clickable button that expands to show all items.

Default

true

string

See

https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/exportparts

(segment, index) => readonly (string | PathSegment)[]

Return the sibling entries for a segment to enable a dropdown picker on that crumb. Return an empty array (or omit the prop) to leave a segment without a dropdown. Choosing a sibling fires onNavigate with that sibling’s value.

boolean

string

Unique identifier for the component

boolean

See

https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/inert

any

"text" | "none" | "search" | "tel" | "url" | "email" | "numeric" | "decimal"

Hints at the type of data that might be entered by the user while editing the element or its contents

See

https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute

string

Specify that a standard HTML element should behave like a defined custom built-in element

See

https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is

string

string

string

number

Number of items to keep visible at the end when collapsing.

Default

2

number

Number of items to keep visible at the start when collapsing.

Default

1

boolean

string

string

number

Maximum number of items to show before collapsing the middle into an ellipsis. 0 or undefined never collapses.

Default

0

string

ReactEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

AnimationEventHandler<HTMLElement>

AnimationEventHandler<HTMLElement>

AnimationEventHandler<HTMLElement>

AnimationEventHandler<HTMLElement>

AnimationEventHandler<HTMLElement>

AnimationEventHandler<HTMLElement>

MouseEventHandler<HTMLElement>

MouseEventHandler<HTMLElement>

InputEventHandler<HTMLElement>

InputEventHandler<HTMLElement>

ToggleEventHandler<HTMLElement>

FocusEventHandler<HTMLElement>

FocusEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

ChangeEventHandler<HTMLElement, Element>

MouseEventHandler<HTMLElement>

MouseEventHandler<HTMLElement>

CompositionEventHandler<HTMLElement>

CompositionEventHandler<HTMLElement>

CompositionEventHandler<HTMLElement>

CompositionEventHandler<HTMLElement>

CompositionEventHandler<HTMLElement>

CompositionEventHandler<HTMLElement>

MouseEventHandler<HTMLElement>

MouseEventHandler<HTMLElement>

ClipboardEventHandler<HTMLElement>

ClipboardEventHandler<HTMLElement>

ClipboardEventHandler<HTMLElement>

ClipboardEventHandler<HTMLElement>

MouseEventHandler<HTMLElement>

MouseEventHandler<HTMLElement>

DragEventHandler<HTMLElement>

DragEventHandler<HTMLElement>

DragEventHandler<HTMLElement>

DragEventHandler<HTMLElement>

DragEventHandler<HTMLElement>

DragEventHandler<HTMLElement>

DragEventHandler<HTMLElement>

DragEventHandler<HTMLElement>

DragEventHandler<HTMLElement>

DragEventHandler<HTMLElement>

DragEventHandler<HTMLElement>

DragEventHandler<HTMLElement>

DragEventHandler<HTMLElement>

DragEventHandler<HTMLElement>

DragEventHandler<HTMLElement>

DragEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

FocusEventHandler<HTMLElement>

FocusEventHandler<HTMLElement>

PointerEventHandler<HTMLElement>

PointerEventHandler<HTMLElement>

InputEventHandler<HTMLElement>

InputEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

KeyboardEventHandler<HTMLElement>

KeyboardEventHandler<HTMLElement>

KeyboardEventHandler<HTMLElement>

KeyboardEventHandler<HTMLElement>

KeyboardEventHandler<HTMLElement>

KeyboardEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

PointerEventHandler<HTMLElement>

PointerEventHandler<HTMLElement>

MouseEventHandler<HTMLElement>

MouseEventHandler<HTMLElement>

MouseEventHandler<HTMLElement>

MouseEventHandler<HTMLElement>

MouseEventHandler<HTMLElement>

MouseEventHandler<HTMLElement>

MouseEventHandler<HTMLElement>

MouseEventHandler<HTMLElement>

MouseEventHandler<HTMLElement>

MouseEventHandler<HTMLElement>

MouseEventHandler<HTMLElement>

MouseEventHandler<HTMLElement>

(path, segment, index) => void

Called when a segment is activated — by clicking a folder crumb or by choosing an entry from a segment’s sibling dropdown. path is the activated segment’s navigation value.

ClipboardEventHandler<HTMLElement>

ClipboardEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

PointerEventHandler<HTMLElement>

PointerEventHandler<HTMLElement>

PointerEventHandler<HTMLElement>

PointerEventHandler<HTMLElement>

PointerEventHandler<HTMLElement>

PointerEventHandler<HTMLElement>

PointerEventHandler<HTMLElement>

PointerEventHandler<HTMLElement>

PointerEventHandler<HTMLElement>

PointerEventHandler<HTMLElement>

PointerEventHandler<HTMLElement>

PointerEventHandler<HTMLElement>

PointerEventHandler<HTMLElement>

PointerEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

UIEventHandler<HTMLElement>

UIEventHandler<HTMLElement>

UIEventHandler<HTMLElement>

UIEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

SubmitEventHandler<HTMLElement>

SubmitEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

ToggleEventHandler<HTMLElement>

TouchEventHandler<HTMLElement>

TouchEventHandler<HTMLElement>

TouchEventHandler<HTMLElement>

TouchEventHandler<HTMLElement>

TouchEventHandler<HTMLElement>

TouchEventHandler<HTMLElement>

TouchEventHandler<HTMLElement>

TouchEventHandler<HTMLElement>

TransitionEventHandler<HTMLElement>

TransitionEventHandler<HTMLElement>

TransitionEventHandler<HTMLElement>

TransitionEventHandler<HTMLElement>

TransitionEventHandler<HTMLElement>

TransitionEventHandler<HTMLElement>

TransitionEventHandler<HTMLElement>

TransitionEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

ReactEventHandler<HTMLElement>

WheelEventHandler<HTMLElement>

WheelEventHandler<HTMLElement>

string

See

https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/part

"" | "auto" | "manual" | "hint"

string

"toggle" | "hide" | "show"

string

string

string

Ref<HTMLElement>

string

string

number

string

AriaRole

ReactNode

Icon rendered before the first segment when that segment has no icon of its own — typically a workspace or home glyph.

string

ReactNode

Separator inserted between segments. The default chevron scales with size.

Default

<ChevronRightIcon size={size} decorative />

Size = 'sm'

Typography and spacing scale. Also scales the default separator and the sibling-dropdown caret.

Default

"sm"

string

Booleanish

CSSProperties

Custom inline styles

boolean

boolean

number

string

Test identifier for automated testing

string

"yes" | "no"

string

"off" | "on"

PathInput

Controlled current path. When provided, PathBar renders exactly this path and never mutates it — drive changes from onNavigate.

string

ReactElement

<PathBar
defaultValue="src/components/Button/Button.tsx"
rootIcon={<HomeIcon size="sm" decorative />}
onNavigate={path => router.push(path)}
/>