Is there any sort of interface/idiom for representing "A Bubbletea component"? #315
Unanswered
andyhaskell
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I noticed that in Bubbles, many components have methods that are similar to the ones implementing a Bubbletea Model, with the key differences between them being:
Something I think would be useful is if there was an interface, or common idiomatic approach for representing a component. For example to represent things like:
Focusable
interface on top of the Component interfaceGroup
component that manages focus state between components, and renders them together with something like the Lipgloss JoinHorizontal/JoinVertical functionsOne approach I am experimenting with, based on
Model
, isthen building a Focusable interface like:
and wrapping Bubbles components to use this interface like:
Has anyone heard of other approaches for this?
Beta Was this translation helpful? Give feedback.
All reactions