Skip to content
ghostui

Preview

Design guidance

Use a breadcrumb for a hierarchy, with ancestors as links and the current page identified by aria-current="page". Breadcrumb.Trail applies a depth rule. The manual parts let your application choose another policy. Navigation, drafts, page actions and persistence remain caller-owned.

The default 10px size suits dense toolbars. Use 12px when the trail needs more prominence. Long labels keep their full accessible text and a native title. A title tooltip alone is insufficient for critical content on touch devices; show that name elsewhere in the page.

Installation

Install

Install emoji-picker for the emoji example. Select, Combobox and Popover examples also import their named components.

Basic usage

sm is 10px. base is 12px.

Structures

Trail composes these parts from stable item IDs. Overflow composes Dropdown Menu and IconButton. Editable renders the shared Input; its caller owns draft and commit behavior. Use renderOverflow and renderCurrent for custom controls without replacing the navigation shell. Put interactive leading content inside Current, rather than its decorative icon prop.

Examples

With icon

Use a destination icon when it helps identify the location.

Custom separator

Long trail

Keep the full path with maxItems=0. Labels truncate inside the available space; native titles retain the full name.

Collapsed

Trail collapses above four levels by default. The root, parent and current page stay visible. The ellipsis opens the hidden ancestors in order.

Collapsed with Select

Use a flat Select when the hidden locations form a short list.

Collapsed hierarchy

Use nested Dropdown Menu parts when browsing successive parent levels matters.

Compose Combobox inside Popover to search a longer list.

Editable current page

The shared Input stays quiet at rest. Hover and focus show the field. The caller commits on Enter or blur and cancels with Escape.

Editable page with emoji

Keep the emoji trigger and name field as separate controls.

The trailing action searches the current page and its siblings.

Select neighboring pages

Use Select for a short sibling list.

Current page actions

Rename in place, move to another parent, duplicate the page, or copy its link.

API reference