Skip to content
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

z-index support? #7

Closed
SevDaisy opened this issue Jan 2, 2024 · 1 comment
Closed

z-index support? #7

SevDaisy opened this issue Jan 2, 2024 · 1 comment

Comments

@SevDaisy
Copy link

SevDaisy commented Jan 2, 2024

I'm troubling with how can I render my boxes in different z-index? You know, just like the amazing video https://charm.sh/bubbletea.6f3a317d9ddacaed.mp4 in https://charm.sh/

anyway, source code enough for me in most cases. however I searched almost everywhere but find no code about the amazing MP4. closely to cry(.hahaha

Is it possiblely to support z-index with your lib NOW or FUTURE ?

@winder
Copy link
Owner

winder commented Jan 2, 2024

This library doesn't help with z-index. It is only designed to support tiled layouts, like most terminal applications.

I would love to see proper modal / floating window support in bubble tea and lipgloss, but I don't think they exist yet. The closest I'm aware of is the place function, but I'm not sure how to provide a background buffer with it.

This old PR is the closest thing I'm aware of that would let you build a floating window / modal / overlay: charmbracelet/lipgloss#102

Strange that they would use this as the demo video for bubble tea!

@winder winder closed this as completed Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants