charmbracelet / bubbletea

A powerful little TUI framework 🏗
MIT License
27.78k stars 801 forks source link

suggested utility libraries alongside "Bubble Tea in the Wild" #368

Closed lrstanley closed 2 years ago

lrstanley commented 2 years ago

Hello! I've made a library to help with mouse event tracking, allowing zones to be created, and easily check if mouse events are within a specific zone -- primarily useful for things like tabs, lists, buttons, etc. The goal being to avoid having to do all of the complex offset calculations for mouse events to see which component is being targeted. I'd like to get it added to a suggested list of utility libraries, however looking at the various family of repositories (bubbletea/lipgloss/bubbles/etc), I'm not sure where it's best suited. It's not a built application, a style library, or a component library, moreso a utility library like termenv/reflow/etc.

Would it be ok if I made a PR, adding a new section under "Libraries we use with Bubble Tea" suggesting alternative libraries as well? (I don't want to put it under that specific section directly as I think that'd be a bit misleading).

Project link: https://github.com/lrstanley/bubblezone

Example of the library in action (only wraps existing components, doesn't make its own): full-lipgloss example

meowgorithm commented 2 years ago

Dude, this looks amazing. By all means, please do send a PR.