bubbletea/examples
Tim Mattison ab7e5ea8b2
chore(docs): remove the tea.EnterAltScreen from Init
Per the docs: 8f3464a756/screen.go (L29)
2024-01-22 09:04:26 -05:00
..
altscreen-toggle chore: rename StartReturningModel to Run 2022-10-08 01:34:17 +02:00
autocomplete chore: cleanup autocomplete example (#892) 2024-01-08 12:05:38 -05:00
cellbuffer docs: fix lint issues in examples and tutorials (#759) 2023-06-09 13:33:53 -03:00
chat chore: rename StartReturningModel to Run 2022-10-08 01:34:17 +02:00
composable-views docs: fix lint issues in examples and tutorials (#759) 2023-06-09 13:33:53 -03:00
credit-card-form fix: index out of range in examples/credit-card-form when ccn is empty (#770) 2023-06-29 19:37:48 -04:00
debounce docs: fix spelling / various typos (#526) 2022-10-11 14:40:01 +02:00
exec chore: rename StartReturningModel to Run 2022-10-08 01:34:17 +02:00
file-picker docs(examples): filepicker AllowedTypes example (#713) 2023-05-31 17:18:24 -04:00
fullscreen chore(docs): remove the tea.EnterAltScreen from Init 2024-01-22 09:04:26 -05:00
glamour chore: rename StartReturningModel to Run 2022-10-08 01:34:17 +02:00
help docs: fix lint issues in examples and tutorials (#759) 2023-06-09 13:33:53 -03:00
http docs: fix lint issues in examples and tutorials (#759) 2023-06-09 13:33:53 -03:00
list-default chore: rename StartReturningModel to Run 2022-10-08 01:34:17 +02:00
list-fancy chore: rename StartReturningModel to Run 2022-10-08 01:34:17 +02:00
list-simple handle "q" for quitting in list-simple example (#839) 2024-01-11 10:38:58 -05:00
mouse feat: extended Coordinates mouse reporting & additional buttons support (#594) 2023-12-04 11:50:59 -05:00
package-manager docs: fix lint issues in examples and tutorials (#759) 2023-06-09 13:33:53 -03:00
pager Remove references to io/ioutil package 2022-11-10 13:51:29 +01:00
paginator chore: rename StartReturningModel to Run 2022-10-08 01:34:17 +02:00
pipe docs: fix lint issues in examples and tutorials (#759) 2023-06-09 13:33:53 -03:00
prevent-quit docs: fix lint issues in examples and tutorials (#759) 2023-06-09 13:33:53 -03:00
progress-animated chore: rename StartReturningModel to Run 2022-10-08 01:34:17 +02:00
progress-download docs: fix lint issues in examples and tutorials (#759) 2023-06-09 13:33:53 -03:00
progress-static chore: rename StartReturningModel to Run 2022-10-08 01:34:17 +02:00
realtime docs: fix lint issues in examples and tutorials (#759) 2023-06-09 13:33:53 -03:00
result chore: rename StartReturningModel to Run 2022-10-08 01:34:17 +02:00
send-msg docs: fix lint issues in examples and tutorials (#759) 2023-06-09 13:33:53 -03:00
sequence feat: `sequence` support `BatchMsg` 2023-02-07 10:06:46 -05:00
set-window-title feat: add set-window-title command (#611) 2023-12-04 11:50:27 -05:00
simple feat: extended Coordinates mouse reporting & additional buttons support (#594) 2023-12-04 11:50:59 -05:00
spinner chore: rename StartReturningModel to Run 2022-10-08 01:34:17 +02:00
spinners chore: rename StartReturningModel to Run 2022-10-08 01:34:17 +02:00
split-editors chore: rename StartReturningModel to Run 2022-10-08 01:34:17 +02:00
stopwatch docs: fix lint issues in examples and tutorials (#759) 2023-06-09 13:33:53 -03:00
table chore: rename StartReturningModel to Run 2022-10-08 01:34:17 +02:00
tabs chore: rename StartReturningModel to Run 2022-10-08 01:34:17 +02:00
textarea docs: fix typos and clean up comments 2023-02-19 08:45:22 -05:00
textinput chore: rename StartReturningModel to Run 2022-10-08 01:34:17 +02:00
textinputs docs: fix lint issues in examples and tutorials (#759) 2023-06-09 13:33:53 -03:00
timer docs: fix lint issues in examples and tutorials (#759) 2023-06-09 13:33:53 -03:00
tui-daemon-combo docs: fix lint issues in examples and tutorials (#759) 2023-06-09 13:33:53 -03:00
views docs: fix lint issues in examples and tutorials (#759) 2023-06-09 13:33:53 -03:00
README.md docs: add examples/gifs locally to repository 2022-10-03 15:07:28 -04:00
go.mod chore(deps): bump golang.org/x/term from 0.9.0 to 0.16.0 (#898) 2024-01-10 16:31:35 -05:00
go.sum chore(deps): bump golang.org/x/term from 0.9.0 to 0.16.0 (#898) 2024-01-10 16:31:35 -05:00

README.md

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.

Credit Card Form

The credit-card-form example demonstrates how to build a multi-step form with textinputs 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.