ns-ui
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.jsonns-ui / truncation-taper-fade
Hover or focus a row to read its full name.
| Name | Size | Modified |
|---|---|---|
| README.md | 4.1 KB | 2d ago |
| truncation-taper-fade-mechanism-notes-and-benchmarks.md | 18.9 KB | just now |
| registry/core/text-variable-weight/component.tsx | 2.3 KB | 1w ago |
| scripts/build-registry-and-llms-index.generated.ts | 6.7 KB | 3w ago |
Path
| Prop | Type | Default | Description |
|---|---|---|---|
| text | string | — | Full string — always rendered as real text, in full, regardless of visual clipping. |
| maxTailChars? | number | — | How many trailing characters can taper at most. Default 12. |
| className? | string | — | — |