bubbletea/examples
2026-06-01 12:21:55 -04:00
..
altscreen-toggle refactor: migrate imports to charm.land domain 2025-11-04 15:04:06 -05:00
autocomplete refactor: migrate imports to charm.land domain 2025-11-04 15:04:06 -05:00
canvas chore(examples): update to bubbletea v2 onMouse callback 2025-11-24 10:58:40 -05:00
capability fix(examples): capability make sure input is focused on start 2026-01-30 08:29:50 +03:00
cellbuffer docs(examples): migrate imports to charm.land 2025-11-04 14:59:01 -05:00
chat fix(examples): revert textarea pointers to values 2025-11-13 16:40:47 -05:00
clickable chore(examples): update lipgloss to v2.0.0-beta.3.0.20251205162909-7869489d8971 2026-01-13 14:58:31 -05:00
colorprofile docs(examples): migrate imports to charm.land 2025-11-04 14:59:01 -05:00
composable-views refactor: migrate imports to charm.land domain 2025-11-04 15:04:06 -05:00
cursor-style docs(examples): migrate imports to charm.land 2025-11-04 14:59:01 -05:00
debounce docs(examples): migrate imports to charm.land 2025-11-04 14:59:01 -05:00
doom-fire refactor: migrate imports to charm.land domain 2025-11-04 15:04:06 -05:00
dynamic-textarea docs(example): add textarea dynamic height example (#1639) 2026-03-26 15:09:43 -04:00
exec docs(examples): migrate imports to charm.land 2025-11-04 14:59:01 -05:00
eyes refactor: migrate imports to charm.land domain 2025-11-04 15:04:06 -05:00
file-picker docs(examples): migrate imports to charm.land 2025-11-04 14:59:01 -05:00
focus-blur docs(examples): migrate imports to charm.land 2025-11-04 14:59:01 -05:00
fullscreen docs(examples): migrate imports to charm.land 2025-11-04 14:59:01 -05:00
glamour fix(examples): migrate imports to charm.land for the glamour example (#1642) 2026-03-26 11:46:29 -03:00
help chore(examples): update help example to use SetWidth 2026-03-11 18:18:16 +03:00
http docs(examples): migrate imports to charm.land 2025-11-04 14:59:01 -05:00
isbn-form refactor: migrate imports to charm.land domain 2025-11-04 15:04:06 -05:00
keyboard-enhancements refactor: keyboard enhancements api improvements (#1534) 2025-11-06 12:22:22 -05:00
list-default refactor: migrate imports to charm.land domain 2025-11-04 15:04:06 -05:00
list-fancy refactor: migrate imports to charm.land domain 2025-11-04 15:04:06 -05:00
list-simple refactor: migrate imports to charm.land domain 2025-11-04 15:04:06 -05:00
mouse docs(examples): migrate imports to charm.land 2025-11-04 14:59:01 -05:00
package-manager Merge branch 'main' into v2-exp 2026-02-10 15:45:29 +03:00
pager Merge branch 'main' into v2-exp 2026-02-10 15:45:29 +03:00
paginator refactor: migrate imports to charm.land domain 2025-11-04 15:04:06 -05:00
pipe refactor: migrate imports to charm.land domain 2025-11-04 15:04:06 -05:00
prevent-quit fix(examples): revert textarea pointers to values 2025-11-13 16:40:47 -05:00
print-key refactor: keyboard enhancements api improvements (#1534) 2025-11-06 12:22:22 -05:00
progress-animated fix(examples): use updated progress bar blend api 2025-11-14 14:46:54 -05:00
progress-bar refactor: migrate imports to charm.land domain 2025-11-04 15:04:06 -05:00
progress-download fix(examples): use updated progress bar blend api 2025-11-14 14:46:54 -05:00
progress-static fix(examples): use updated progress bar blend api 2025-11-14 14:46:54 -05:00
query-term docs(examples): migrate imports to charm.land 2025-11-04 14:59:01 -05:00
realtime docs(examples): migrate imports to charm.land 2025-11-04 14:59:01 -05:00
result docs(examples): migrate imports to charm.land 2025-11-04 14:59:01 -05:00
send-msg refactor: migrate imports to charm.land domain 2025-11-04 15:04:06 -05:00
sequence docs(examples): migrate imports to charm.land 2025-11-04 14:59:01 -05:00
set-terminal-color refactor: migrate imports to charm.land domain 2025-11-04 15:04:06 -05:00
set-window-title refactor: migrate imports to charm.land domain 2025-11-04 15:04:06 -05:00
simple docs(examples): migrate imports to charm.land 2025-11-04 14:59:01 -05:00
space refactor: migrate imports to charm.land domain 2025-11-04 15:04:06 -05:00
spinner refactor: migrate imports to charm.land domain 2025-11-04 15:04:06 -05:00
spinners refactor: migrate imports to charm.land domain 2025-11-04 15:04:06 -05:00
splash refactor: migrate imports to charm.land domain 2025-11-04 15:04:06 -05:00
split-editors fix(examples): revert textarea pointers to values 2025-11-13 16:40:47 -05:00
stopwatch docs(examples): migrate imports to charm.land 2025-11-04 14:59:01 -05:00
suspend docs(examples): migrate imports to charm.land 2025-11-04 14:59:01 -05:00
table fix(examples): add missing WithWidth to table example (#1598) 2026-02-26 10:45:17 -03:00
table-resize refactor: migrate imports to charm.land domain 2025-11-04 15:04:06 -05:00
tabs refactor: migrate imports to charm.land domain 2025-11-04 15:04:06 -05:00
textarea fix(examples): resolve nil pointer dereference (#1663) 2026-04-06 17:37:58 -04:00
textinput refactor: migrate imports to charm.land domain 2025-11-04 15:04:06 -05:00
textinputs refactor: migrate imports to charm.land domain 2025-11-04 15:04:06 -05:00
timer docs(examples): migrate imports to charm.land 2025-11-04 14:59:01 -05:00
tui-daemon-combo chore(examples): update dependencies and remove go-isatty 2026-04-13 10:13:27 -04:00
vanish docs(examples): migrate imports to charm.land 2025-11-04 14:59:01 -05:00
views chore(examples): views: change KeyMsg to KeyPressMsg in Update function (#1611) 2026-04-13 10:43:59 -04:00
window-size docs(examples): migrate imports to charm.land 2025-11-04 14:59:01 -05:00
go.mod fix(examples/deps): go mod tidy 2026-06-01 12:21:55 -04:00
go.sum fix(examples/deps): go mod tidy 2026-06-01 12:21:55 -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.