Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Higher-order templating #607

Closed
antonmedv opened this issue Nov 17, 2022 · 0 comments
Closed

Higher-order templating #607

antonmedv opened this issue Nov 17, 2022 · 0 comments

Comments

@antonmedv
Copy link

Hello team 馃憢馃徎

I really like bubbletea and it's design ideas. Really easy to use. I enjoyed working with bubbletea in https://github.com/antonmedv/llama.

But in my other project https://github.com/antonmedv/fx, bubbletea was much more difficult to use. I had to spit view lines to chunks of chunks, and merge chunks back in a really complicated way 馃く

And idea of adding a popup is just no go there. Here is a similar issues:

My proposal is to add another package on top of bubbletea. Something what allows easy composition, styling and overlaying of components.

<view flex="column">
    <view border="rounded" id="nav"/>
    <view background="red" id="content"/>
</view>
<popup top="5" left="30">
    <input type="text">
    <button value="Ok">
</popup>

A view things such package can provide:

  • flex layouts (very easy to create layouts, menus, etc),
  • popups
  • inputs and buttons
  • styling

Why html? Because people already know it. 馃ス

I think such library can be a really nice addition to the awesome bubbletea. Unfortunately I don't have time to work on such library (also I think it will be extremely interesting to work on it).

So I hope you can work on it. 馃ズ

@charmbracelet charmbracelet locked and limited conversation to collaborators Feb 15, 2023
@bashbunni bashbunni converted this issue into discussion #665 Feb 15, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant