mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-24 20:45:56 +03:00
[GH-ISSUE #703] Feature request: Allow border title at the bottom of a box #959
Labels
No labels
bug
core
documentation
feature
good first issue
help wanted
pull-request
question
react
solid
tmux
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentui#959
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
titleAlignmentwould 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!
@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.
@viralcodex commented on GitHub (Feb 20, 2026):
@DriesOlbrechts can you provide some demo/examples as to what is needed to help understand better?
Thanks
@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.
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
Hopefully this clears it up a bit?