GithubHelp home page GithubHelp logo

Comments (5)

eugener avatar eugener commented on May 20, 2024 2

This is pretty similar to what I had to implement within the app I'm working on.
Addition of Title API to styles would make it no-brainer. Title colors and horizontal alignment (left, center,right) would be a welcome addition too!

from lipgloss.

meowgorithm avatar meowgorithm commented on May 20, 2024 1

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.

from lipgloss.

meowgorithm avatar meowgorithm commented on May 20, 2024

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

from lipgloss.

eugener avatar eugener commented on May 20, 2024

@meowgorithm Please take a look at related PR #97. Hopefully, with few iterations, this API can become a part of the library

from lipgloss.

greenm01 avatar greenm01 commented on May 20, 2024

I would also like to add a title to my border, similar to TermUI:
https://raw.githubusercontent.com/gizak/termui/master/_assets/demo.gif

Thanks!

from lipgloss.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.