Skip to content
Discussion options

You must be logged in to vote

Couple of things:

  • tea.Layer is an interface which represents something which can be rendered onto a screen -- it's abstract for high-performance usecases.
  • lipgloss.Layer is designed to be used with lipgloss.NewCanvas(), which creates multi-layer layouts using multiple lipgloss.Layer's, stacked on top of each other, side by side, etc. lipgloss.Canvas implements tea.Layer.

With the new tea.View functionality (and tea.Model being updated to use tea.View), the idea now is that this is for the root model only. You can decide on how your children components should be rendered, but it probably shouldn't be through tea.View/tea.Model, because it has a bunch of stuff that components should proba…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@GeenDutchman
Comment options

@GeenDutchman
Comment options

@GeenDutchman
Comment options

@lrstanley
Comment options

Answer selected by GeenDutchman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants