ns-ui

Truncation Taper Fade

Truncation without the ellipsis — an overflowing line's trailing characters crowd tighter and dissolve toward the clip edge instead of getting cut to '...'; hover or focus decompresses it to read the tail.

Use when a table cell, breadcrumb, or file path needs to communicate 'there is more, and roughly how much' without spending three characters on '...' — the trailing run visibly crowds and fades toward the clip edge at rest, and hover/focus springs it back to full width (gliding the line left to peek the tail if it still doesn't fit). Distinct from streaming-markdown-caret (a streaming-markdown caret/settle effect, not a truncation strategy) and from hero-gravity-well (text-as-spectacle collapse, not a boring information-preserving line-clamp).

Install

npx shadcn add https://design.helpmarq.com/r/truncation-taper-fade.json
  • text
  • truncation
  • table
  • typography
  • accessibility
  • variable-font
  • hover

ns-ui / truncation-taper-fade

Hover or focus a row to read its full name.

NameSizeModified
README.md4.1 KB2d ago
truncation-taper-fade-mechanism-notes-and-benchmarks.md18.9 KBjust now
registry/core/text-variable-weight/component.tsx2.3 KB1w ago
scripts/build-registry-and-llms-index.generated.ts6.7 KB3w ago

Path

/Users/nikolassapalidis/Developer/misc/ns-ui/registry/core/truncation-taper-fade/component.tsx

Props

PropTypeDefaultDescription
textstringFull string — always rendered as real text, in full, regardless of visual clipping.
maxTailChars?numberHow many trailing characters can taper at most. Default 12.
className?string