About
A text wrapper that truncates overflow with a single-line ellipsis or clamps a paragraph to a fixed number of lines.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Ellipsis to your project and fits it to your theme.
Code
How Ellipsis is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { Ellipsis } from "@/components/ui/ellipsis";
export default function EllipsisDemo() {
const title =
"A long chapter title walks into a narrow column and leaves its tail at the door";
return (
<div className="flex min-h-[200px] w-full items-center justify-center bg-background p-8 text-foreground">
<div style={{ inlineSize: "20rem" }}>
<Ellipsis title={title}>{title}</Ellipsis>
</div>
</div>
);
}







