[GH-ISSUE #703] Feature request: Allow border title at the bottom of a box #959

Open
opened 2026-03-14 09:09:14 +03:00 by kerem · 3 comments
Owner

Originally created by @DriesOlbrechts on GitHub (Feb 18, 2026).
Original GitHub issue: https://github.com/anomalyco/opentui/issues/703

Currently the title property of a box can only be aligned along the top edge of a border. It would be useful to also allow it along the bottom edge.

titleAlignment would need 3 new values: bottomleft | bottomcenter | bottomright. (not sure about those names)

I'm willing to create a PR for this if you agree that this is a useful addition!

Originally created by @DriesOlbrechts on GitHub (Feb 18, 2026). Original GitHub issue: https://github.com/anomalyco/opentui/issues/703 Currently the title property of a box can only be aligned along the top edge of a border. It would be useful to also allow it along the bottom edge. `titleAlignment` would need 3 new values: `bottomleft` | `bottomcenter` | `bottomright`. (not sure about those names) I'm willing to create a PR for this if you agree that this is a useful addition!
Author
Owner

@DriesOlbrechts commented on GitHub (Feb 18, 2026):

On second thought, it might make more sense for bottom title to be a completely seperate property? So a box can have both a top and bottom title.

<!-- gh-comment-id:3923353321 --> @DriesOlbrechts commented on GitHub (Feb 18, 2026): On second thought, it might make more sense for bottom title to be a completely seperate property? So a box can have both a top and bottom title.
Author
Owner

@viralcodex commented on GitHub (Feb 20, 2026):

@DriesOlbrechts can you provide some demo/examples as to what is needed to help understand better?
Thanks

<!-- gh-comment-id:3936917628 --> @viralcodex commented on GitHub (Feb 20, 2026): @DriesOlbrechts can you provide some demo/examples as to what is needed to help understand better? Thanks
Author
Owner

@DriesOlbrechts commented on GitHub (Feb 20, 2026):

@viralcodex
Sure, here for example, the "(n)" is a bottom aligned title for a box Renderable.
Currently this is not possible, only top aligned titles are supported.

Image

I had implemented this locally when I realised you might still want a top title as well, for example here, where "Items" is the top title, and bottom title is used as a progress indicator

Image

Hopefully this clears it up a bit?

<!-- gh-comment-id:3937319416 --> @DriesOlbrechts commented on GitHub (Feb 20, 2026): @viralcodex Sure, here for example, the "(n)" is a bottom aligned title for a box Renderable. Currently this is not possible, only top aligned titles are supported. <img width="1765" height="52" alt="Image" src="https://github.com/user-attachments/assets/f41048af-102c-4e4b-a10d-ceeed37043ed" /> I had implemented this locally when I realised you might still want a top title as well, for example here, where "Items" is the top title, and bottom title is used as a progress indicator <img width="887" height="924" alt="Image" src="https://github.com/user-attachments/assets/9256db24-4951-4293-8678-ddae10be8306" /> Hopefully this clears it up a bit?
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#959
No description provided.