[GH-ISSUE #96] Support for textOverflow: 'truncate' in text #24

Closed
opened 2026-03-02 23:43:55 +03:00 by kerem · 2 comments
Owner

Originally created by @remorses on GitHub (Aug 28, 2025).
Original GitHub issue: https://github.com/anomalyco/opentui/issues/96

I would love to have this feature built into opentui. Currently text overflows and it can go over other elements.

The API in React could look something like

<text textOverflow='truncate'>very long text should be truncated and add ... at the end</text>
Image
Originally created by @remorses on GitHub (Aug 28, 2025). Original GitHub issue: https://github.com/anomalyco/opentui/issues/96 I would love to have this feature built into opentui. Currently text overflows and it can go over other elements. The API in React could look something like ```tsx <text textOverflow='truncate'>very long text should be truncated and add ... at the end</text> ``` <img width="651" height="575" alt="Image" src="https://github.com/user-attachments/assets/a1ebc440-978f-4b22-80c3-fb0586ed85d1" />
kerem 2026-03-02 23:43:55 +03:00
Author
Owner

@kommander commented on GitHub (Aug 28, 2025):

How does the layout for this look like? If the texts are in the same parent in a row it should truncate cut off the text, when using a TextRenderable or text component.

<!-- gh-comment-id:3233527102 --> @kommander commented on GitHub (Aug 28, 2025): How does the layout for this look like? If the texts are in the same parent in a row it should ~~truncate~~ cut off the text, when using a TextRenderable or text component.
Author
Owner

@kommander commented on GitHub (Jan 18, 2026):

There is a truncate: boolean option on Text Renderables now. Can be iterated, but basics are there.

<!-- gh-comment-id:3765304109 --> @kommander commented on GitHub (Jan 18, 2026): There is a `truncate: boolean` option on Text Renderables now. Can be iterated, but basics are there.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/opentui#24
No description provided.