Skip to main content
All patterns

Data display

Left-truncating paths

Shortens a long path by dropping whole segments from the left, because the tail is what tells two paths apart — the opposite of what CSS ellipsis throws away.

Reach for it when building

  • file browser breadcrumbs
  • import paths in a stack trace
  • nested category labels
  • deep object paths in a debugger
  • terminal prompt path
  • repository tree navigation
  • truncation
  • paths
  • text-overflow
  • breadcrumbs
  • file-systems