bubbletea/examples
2025-10-16 09:36:55 -04:00
..
altscreen-toggle docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
autocomplete docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
canvas docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
capability docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
cellbuffer docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
chat docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
clickable docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
colorprofile chore: fix examples to use functional options 2025-10-14 12:42:52 -04:00
composable-views docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
cursor-style docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
debounce docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
doom-fire docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
exec docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
file-picker docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
focus-blur docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
fullscreen docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
glamour docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
help docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
http docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
isbn-form docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
keyboard-enhancements fix(examples): add newline to keyboard-enhancements example output 2025-10-15 11:51:53 -04:00
list-default docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
list-fancy docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
list-simple docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
mouse docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
package-manager docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
pager docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
paginator docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
pipe docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
prevent-quit chore: fix examples to use functional options 2025-10-14 12:42:52 -04:00
print-key docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
progress-animated docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
progress-bar docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
progress-download docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
progress-static docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
query-term docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
realtime docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
result docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
send-msg docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
sequence docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
set-terminal-color docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
set-window-title docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
simple docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
space docs(examples): space: fix off-by-one error in height calculation 2025-10-14 12:47:29 -04:00
spinner docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
spinners docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
splash docs(examples): splash: fix extra newline at bottom of gradient 2025-10-14 12:48:47 -04:00
split-editors docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
stopwatch docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
suspend docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
table docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
table-resize docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
tabs docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
textarea docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
textinput docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
textinputs docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
timer docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
tui-daemon-combo chore(examples): update tui-daemon-combo to use ProgramOptions 2025-10-15 11:45:42 -04:00
vanish docs(examples): add vanish-on-exit example (#1516) 2025-10-16 09:36:21 -04:00
views docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
window-size docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
go.mod chore: bump ultraviolet to v0.0.0-20251015160106-36a5aeb2b2dd 2025-10-15 12:01:41 -04:00
go.sum chore: bump ultraviolet to v0.0.0-20251015160106-36a5aeb2b2dd 2025-10-15 12:01:41 -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.