bubbletea/examples
2025-06-09 10:33:41 -04:00
..
_1248 chore: merge branch 'main' into v2-exp 2025-02-12 17:03:48 -05:00
_bug-artifact chore: merge branch 'main' into v2-exp 2025-02-12 17:03:48 -05:00
_bug1232 chore: merge branch 'main' into v2-exp 2025-02-12 17:03:48 -05:00
_cursor-style-func chore: merge branch 'main' into v2-exp 2025-02-12 17:03:48 -05:00
_image chore: merge branch 'main' into v2-exp 2025-02-12 17:03:48 -05:00
_wishbug chore: merge branch 'main' into v2-exp 2025-02-12 17:03:48 -05:00
altscreen-toggle docs(examples): update various examples for current v2 chagnes 2025-02-04 14:24:36 -05:00
autocomplete docs(examples): update textinput and textarea examples per Bubbles v2 API changes (#1425) 2025-05-26 09:20:56 -04:00
canvas docs(examples): add simple Lip Gloss Canvas example 2025-05-26 22:11:50 -04:00
capability docs(examples): update various examples for current v2 chagnes 2025-02-04 14:24:36 -05:00
cellbuffer chore: run modernize 2025-05-30 17:22:31 -03:00
chat docs(examples): update textinput and textarea examples per Bubbles v2 API changes (#1425) 2025-05-26 09:20:56 -04:00
colorprofile docs(examples): update various examples for current v2 chagnes 2025-02-04 14:24:36 -05:00
composable-views feat(v2): update examples (#1318) 2025-02-11 13:42:47 -03:00
cursor-style fix(examples): update cursor-style example to use new View signature 2025-03-12 16:22:30 -04:00
debounce docs(examples): update various examples for current v2 chagnes 2025-02-04 14:24:36 -05:00
doom-fire chore: run modernize 2025-05-30 17:22:31 -03:00
exec docs(examples): update various examples for current v2 chagnes 2025-02-04 14:24:36 -05:00
file-picker feat(v2): update examples (#1318) 2025-02-11 13:42:47 -03:00
focus-blur docs(examples): update various examples per v2 changes 2025-02-04 16:17:44 -05:00
fullscreen docs(examples): update various examples per v2 changes 2025-02-04 16:17:44 -05:00
glamour refactor(examples): use glamour/v2 2025-03-28 03:02:55 +03:00
help docs(examples): update various examples per v2 changes 2025-02-04 16:17:44 -05:00
http fix: examples: remove extra return value from Init method 2025-02-04 16:54:33 -05:00
isbn-form docs: add isbn form validation example (#1401) 2025-05-12 14:20:41 -03:00
keyboard-enhancements fix(example): fix keyboard-enhancements example 2025-06-03 11:41:02 -03:00
list-default docs(examples): update various examples per v2 changes 2025-02-04 16:17:44 -05:00
list-fancy chore: run modernize 2025-05-30 17:22:31 -03:00
list-simple fix(examples): we don't need to wait for background color query (#1407) 2025-05-01 13:36:34 -04:00
mouse docs(examples): update various examples per v2 changes 2025-02-04 16:17:44 -05:00
package-manager docs(examples): update various examples per v2 changes 2025-02-04 16:17:44 -05:00
pager docs(viewport): update for viewport left gutter API changes 2025-03-21 16:41:29 -04:00
paginator fix(examples): we don't need to wait for background color query (#1407) 2025-05-01 13:36:34 -04:00
pipe docs(examples): update textinput and textarea examples per Bubbles v2 API changes (#1425) 2025-05-26 09:20:56 -04:00
prevent-quit docs(examples): update various examples per v2 changes 2025-02-04 16:17:44 -05:00
print-key feat: keyboard: split keyboard enhancements into separate functions 2025-06-02 14:09:47 -04:00
progress-animated docs(examples): update various examples per v2 changes 2025-02-04 16:17:44 -05:00
progress-download docs(examples): update various examples per v2 changes 2025-02-04 16:17:44 -05:00
progress-static docs(examples): update various examples per v2 changes 2025-02-04 16:17:44 -05:00
query-term docs(examples): remove extraneous lines in query-term example 2025-03-21 14:58:47 -04:00
realtime docs(examples): update various examples per v2 changes 2025-02-04 16:17:44 -05:00
result chore: run modernize 2025-05-30 17:22:31 -03:00
send-msg docs(examples): update various examples per v2 changes 2025-02-04 16:17:44 -05:00
sequence docs(examples): update various examples per v2 changes 2025-02-04 16:17:44 -05:00
set-terminal-color docs(examples): update various examples per v2 changes 2025-02-04 16:17:44 -05:00
set-window-title docs(examples): update various examples per v2 changes 2025-02-04 16:17:44 -05:00
simple chore: merge branch 'main' into v2-exp 2025-02-12 17:03:48 -05:00
space chore: run modernize 2025-05-30 17:22:31 -03:00
spinner docs(examples): update various examples per v2 changes 2025-02-04 16:17:44 -05:00
spinners docs(examples): update various examples per v2 changes 2025-02-04 16:17:44 -05:00
splash chore: run modernize 2025-05-30 17:22:31 -03:00
split-editors docs(examples): update textinput and textarea examples per Bubbles v2 API changes (#1425) 2025-05-26 09:20:56 -04:00
stopwatch feat(v2): update examples (#1318) 2025-02-11 13:42:47 -03:00
suspend docs(examples): update various examples per v2 changes 2025-02-04 16:17:44 -05:00
table docs(examples): update various examples per v2 changes 2025-02-04 16:17:44 -05:00
table-resize docs(examples): update various examples per v2 changes 2025-02-04 16:17:44 -05:00
tabs fix(examples): we don't need to wait for background color query (#1407) 2025-05-01 13:36:34 -04:00
textarea docs(examples): update textinput and textarea examples per Bubbles v2 API changes (#1425) 2025-05-26 09:20:56 -04:00
textinput chore: drop fluent interface from View, add getters 2025-05-26 09:23:17 -04:00
textinputs docs(examples): update textinput and textarea examples per Bubbles v2 API changes (#1425) 2025-05-26 09:20:56 -04:00
timer feat(v2): update examples (#1318) 2025-02-11 13:42:47 -03:00
tui-daemon-combo fix(examples): tui-daemon-combo: modelView must also implement Init and Update 2025-05-15 17:33:59 -04:00
views chore: run modernize 2025-05-30 17:22:31 -03:00
window-size fix: example 2025-02-13 13:37:02 -03:00
go.mod chore: bump ansi package to latest main and update color handling 2025-06-02 11:44:15 -04:00
go.sum chore: bump ansi package to latest main and update color handling 2025-06-02 11:44:15 -04:00
README.md docs: add isbn form validation example (#1401) 2025-05-12 14:20:41 -03:00

Examples

Alt Screen Toggle

The altscreen-toggle example shows how to transition between the alternative screen buffer and the normal screen buffer using Bubble Tea.

Chat

The chat examples shows a basic chat application with a multi-line textarea input.

Composable Views

The composable-views example shows how to compose two bubble models (spinner and timer) together in a single application and switch between them.

ISBN Book Form

The isbn-form example demonstrates how to build a multi-step form with textinput bubbles and validation on the inputs.

Debounce

The debounce example shows how to throttle key presses to avoid overloading your Bubble Tea application.

Exec

The exec example shows how to execute a running command during the execution of a Bubble Tea application such as launching an EDITOR.

Full Screen

The fullscreen example shows how to make a Bubble Tea application fullscreen.

Glamour

The glamour example shows how to use Glamour inside a viewport bubble.

Help

The help example shows how to use the help bubble to display help to the user of your application.

Http

The http example shows how to make an http call within your Bubble Tea application.

Default List

The list-default example shows how to use the list bubble.

Fancy List

The list-fancy example shows how to use the list bubble with extra customizations.

Simple List

The list-simple example shows how to use the list and customize it to have a simpler, more compact, appearance.

Mouse

The mouse example shows how to receive mouse events in a Bubble Tea application.

Code

Package Manager

The package-manager example shows how to build an interface for a package manager using the tea.Println feature.

Pager

The pager example shows how to build a simple pager application similar to less.

Paginator

The paginator example shows how to build a simple paginated list.

Pipe

The pipe example demonstrates using shell pipes to communicate with Bubble Tea applications.

Animated Progress

The progress-animated example shows how to build a progress bar with an animated progression.

Download Progress

The progress-download example demonstrates how to download a file while indicating download progress through Bubble Tea.

Code

Static Progress

The progress-static example shows a progress bar with static incrementation of progress.

Real Time

The realtime example demonstrates the use of go channels to perform realtime communication with a Bubble Tea application.

Result

The result example shows a choice menu with the ability to select an option.

Send Msg

The send-msg example demonstrates the usage of custom tea.Msgs.

Sequence

The sequence example demonstrates the tea.Sequence command.

Simple

The simple example shows a very simple Bubble Tea application.

Spinner

The spinner example demonstrates a spinner bubble being used to indicate loading.

Spinners

The spinner example shows various spinner types that are available.

Split Editors

The split-editors example shows multiple textareas being used in a single application and being able to switch focus between them.

Stop Watch

The stopwatch example shows a sample stop watch built with Bubble Tea.

Table

The table example demonstrates the table bubble being used to display tabular data.

Tabs

The tabs example demonstrates tabbed navigation styled with Lip Gloss.

Text Area

The textarea example demonstrates a simple Bubble Tea application using a textarea bubble.

Text Input

The textinput example demonstrates a simple Bubble Tea application using a textinput bubble.

Multiple Text Inputs

The textinputs example shows multiple textinputs and being able to switch focus between them as well as changing the cursor mode.

Timer

The timer example shows a simple timer built with Bubble Tea.

TUI Daemon

The tui-daemon-combo demonstrates building a text-user interface along with a daemon mode using Bubble Tea.

Views

The views example demonstrates how to build a Bubble Tea application with multiple views and switch between them.