-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to show block title over the border #87
Comments
Implementation specifics aside, this seems like a good addition, though it may also be better off as a standalone component. If we were to add it to the library we'd also need to be able to set colors as well as the option to have both a top and bottom label simultaneously, and potential horizontal padding on the label. If this is something you need right now here's a basic implementation you can start from: https://gist.github.com/meowgorithm/1777377a43373f563476a2bcb7d89306 |
This is pretty similar to what I had to implement within the app I'm working on. |
@meowgorithm Please take a look at related PR #97. Hopefully, with few iterations, this API can become a part of the library |
Thanks @eugener. I’m on holiday for the next few weeks and will look at it when I’m back. I do think this is a common enough request that we should accommodate it. |
I would also like to add a title to my border, similar to TermUI: Thanks! |
Is there no movement on this issue? This is a basic functionality I would like to be able to give my blocks. I would rather stick to lipgloss core than import third party extensions of lipgloss. Its a little disheartening to see no movement on this in 18 months. |
The title could be shown either on top or bottom of the block.
Here one example of such UI
The API might look like the following
There is also a need to change the title dynamically
Titles which do not fit the width of the block can be automatically truncated at the front or back. The fact of truncation can be represented by adding
…
characterThe text was updated successfully, but these errors were encountered: