Skip to content
Myr

feat: add bubblezone to readme (closes #368) (#372)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* feat: add bubblezone to readme (closes #368) - also fixed a handful of grammar-related items in the readme. Signed-off-by: Liam Stanley <me@liamstanley.io> * chore: promote BubbleZone to main resource section

authored by Liam Stanley · committed by GitHub · parent 0a0182e · Browse files · 1 file+11 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Co-authored-by: Christian Rocha <christian@rocha.is>

Diff stats

1 file+11 added−6 removed

  • other:+11 added−6 removed

1 file+11 added−6 removed

modified:README.md+11 added-6 removed
48 unmodified lines
49[elm]: https://guide.elm-lang.org/architecture/5051## Enough! Let's get to it.5253For this tutorial we're making a shopping list.53For this tutorial, we're making a shopping list.5455To start we'll define our package and import some libraries. Our only external56import will be the Bubble Tea library, which we'll call `tea` for short.57
29 unmodified lines
87```8889## Initialization9091Next we’ll define our application’s initial state. In this case we’re defining92a function to return our initial model, however we could just as easily define91Next, we’ll define our application’s initial state. In this case, we’re defining92a function to return our initial model, however, we could just as easily define93the initial model as a variable elsewhere, too.9495```go96func initialModel() model {
8 unmodified lines
105 }106}107```108109Next we define the `Init` method. `Init` can return a `Cmd` that could perform110some initial I/O. For now, we don't need to do any I/O, so for the command109Next, we define the `Init` method. `Init` can return a `Cmd` that could perform110some initial I/O. For now, we don't need to do any I/O, so for the command,111we'll just return `nil`, which translates to "no command."112113```go114func (m model) Init() tea.Cmd {
72 unmodified lines
187188## The View Method189190At last, it’s time to render our UI. Of all the methods, the view is the191simplest. We look at the model in it's current state and use it to return191simplest. We look at the model in its current state and use it to return192a `string`. That string is our UI!193194Because the view describes the entire UI of your application, you don’t have to195worry about redrawing logic and stuff like that. Bubble Tea takes care of it
80 unmodified lines
276277* [Bubbles][bubbles]: Common Bubble Tea components such as text inputs, viewports, spinners and so on278* [Lip Gloss][lipgloss]: Style, format and layout tools for terminal applications279* [Harmonica][harmonica]: A spring animation library for smooth, natural motion280* [BubbleZone][bubblezone]: Easy mouse event tracking for Bubble Tea components281* [Termenv][termenv]: Advanced ANSI styling for terminal applications282* [Reflow][reflow]: Advanced ANSI-aware methods for working with text283284[bubbles]: https://github.com/charmbracelet/bubbles285[lipgloss]: https://github.com/charmbracelet/lipgloss286[harmonica]: https://github.com/charmbracelet/harmonica287[bubblezone]: https://twitter.com/charmcli/status/1541772151660761088https://github.com/lrstanley/bubblezone288[termenv]: https://github.com/muesli/termenv289[reflow]: https://github.com/muesli/reflow290291## Additional utility libraries to use with Bubble Tea292293294## Bubble Tea in the Wild295296For some Bubble Tea programs in production, see:297
64 unmodified lines