_examples

module
v0.0.0-...-c40ed30 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2026 License: MIT

Directories

Path Synopsis
Command backdrops shows every backdrop effect.
Command backdrops shows every backdrop effect.
Command basics prints layouts without a Bubble Tea program, using bloom.Render, one for each way children share a row or column: fixed, filling, weighted, percentage, natural, and clamped sizes, gaps, justification, alignment, spacers, frames, wrapping, and centering; and the grid, flow, spacer, and truncating text helpers.
Command basics prints layouts without a Bubble Tea program, using bloom.Render, one for each way children share a row or column: fixed, filling, weighted, percentage, natural, and clamped sizes, gaps, justification, alignment, spacers, frames, wrapping, and centering; and the grid, flow, spacer, and truncating text helpers.
Command borders shows what can be drawn on a box's border: a title, clickable filter tabs, and a position on its edges, clickable icons down its side, scrollbars that can be dragged, which are only there while there is more to scroll to, text running down a side, and looping border effects, each from one phase that runs for as long as the example does.
Command borders shows what can be drawn on a box's border: a title, clickable filter tabs, and a position on its edges, clickable icons down its side, scrollbars that can be dragged, which are only there while there is more to scroll to, text running down a side, and looping border effects, each from one phase that runs for as long as the example does.
Command contextmenu is a mock file list with right click menus: one for a file, and one for the empty space below the files.
Command contextmenu is a mock file list with right click menus: one for a file, and one for the empty space below the files.
Command dashboard is a service dashboard redrawn at up to 120 frames a second: a sidebar that springs open and shut, live sparklines, a log stream, a scrolling table, a confirmation dialog that slides up over a dimmed backdrop, and a toast for each cell effect.
Command dashboard is a service dashboard redrawn at up to 120 frames a second: a sidebar that springs open and shut, live sparklines, a log stream, a scrolling table, a confirmation dialog that slides up over a dimmed backdrop, and a toast for each cell effect.
Command desktop is a small desktop environment.
Command desktop is a small desktop environment.
internal/apps
Package apps has the desktop's apps, what their windows show, and the desktop's icons to launch them from.
Package apps has the desktop's apps, what their windows show, and the desktop's icons to launch them from.
internal/calc
Package calc is the desktop's calculator app: a display, and a grid of keys that take clicks.
Package calc is the desktop's calculator app: a display, and a grid of keys that take clicks.
internal/splash
Package splash is what the screen shows while the desktop starts up and shuts down: a logo and a progress bar, after which the desktop opens from its middle row and fades in, like an old CRT turning on, and closes back to it as one turning off.
Package splash is what the screen shows while the desktop starts up and shuts down: a logo and a progress bar, after which the desktop opens from its middle row and fades in, like an old CRT turning on, and closes back to it as one turning off.
internal/startmenu
Package startmenu is the start button on the desktop's taskbar, and the menu it opens above it: the apps, and logging out, beside a banner, as start menus were.
Package startmenu is the start button on the desktop's taskbar, and the menu it opens above it: the apps, and logging out, beside a banner, as start menus were.
internal/taskbar
Package taskbar is the bar along the bottom of the desktop: the start button, a button for each window, the status, and a clock.
Package taskbar is the bar along the bottom of the desktop: the start button, a button for each window, the status, and a clock.
internal/theme
Package theme has the desktop's colors and styles, all made from one bubbletint tint by NewStyles.
Package theme has the desktop's colors and styles, all made from one bubbletint tint by NewStyles.
internal/wm
Package wm is the desktop's window manager.
Package wm is the desktop's window manager.
Command dropdowns is a settings dialog of select fields, each of which keeps its list of options next to it: a select lays out its field and its list together, in an overlay of its own, with the list in a layer that floats.
Command dropdowns is a settings dialog of select fields, each of which keeps its list of options next to it: a select lays out its field and its list together, in an overlay of its own, with the list in a layer that floats.
Command editor is a small text editor built from a bloom.Viewport and the bloom.Buffer it shows.
Command editor is a small text editor built from a bloom.Viewport and the bloom.Buffer it shows.
Command effects is a gallery of cell effects.
Command effects is a gallery of cell effects.
Command fig-fonts is a gallery of every FIGlet and TOIlet font bundled with package fig, each drawing a line of text with one of fig's paints: gradients across columns, rows, the diagonal or glyph by glyph, a palette, a rainbow, metal, and a fill for the cells inside letters.
Command fig-fonts is a gallery of every FIGlet and TOIlet font bundled with package fig, each drawing a line of text with one of fig's paints: gradients across columns, rows, the diagonal or glyph by glyph, a palette, a rainbow, metal, and a fill for the cells inside letters.
Command fig-letters animates FIGlet text glyph by glyph, with package fig:
Command fig-letters animates FIGlet text glyph by glyph, with package fig:
Command fig-mission is a dashboard under a FIGlet header that steps down to smaller fonts as the window narrows, and to plain text when none fits, with a shine sweeping across its strokes now and then: a fig.PaintFunc over a gradient.
Command fig-mission is a dashboard under a FIGlet header that steps down to smaller fonts as the window narrows, and to plain text when none fits, with a shine sweeping across its strokes now and then: a fig.PaintFunc over a gradient.
Command forms is a profile form with stacked confirmation dialogs, in the style of vex.
Command forms is a profile form with stacked confirmation dialogs, in the style of vex.
Command golens explores the call graph of a Go project.
Command golens explores the call graph of a Go project.
Command inputs puts two Bubbles text inputs side by side, each in a focusable box, and shows the real terminal cursor in the focused one.
Command inputs puts two Bubbles text inputs side by side, each in a focusable box, and shows the real terminal cursor in the focused one.
internal
clip
Package clip writes text to the system clipboard, for the examples that copy text selected with the mouse, given to bloom.WithClipboard.
Package clip writes text to the system clipboard, for the examples that copy text selected with the mouse, given to bloom.WithClipboard.
demo
Package demo holds what the examples' tests share: the steep options for a tour that is recorded when exporting is turned on, as with "task docs:demos" from the repository root, which the docs build runs.
Package demo holds what the examples' tests share: the steep options for a tour that is recorded when exporting is turned on, as with "task docs:demos" from the repository root, which the docs build runs.
Command launch is a deploy console that puts the motion effects to work.
Command launch is a deploy console that puts the motion effects to work.
Command logs tails a server log of a quarter of a million lines, which grows as it is shown, in a bloom.Viewport.
Command logs tails a server log of a quarter of a million lines, which grows as it is shown, in a bloom.Viewport.
Command mouse is a file browser driven by mouse handlers on the nodes they are about, with no IDs to tell events apart.
Command mouse is a file browser driven by mouse handlers on the nodes they are about, with no IDs to tell events apart.
Command reflow shows automatic layout animation: a spring sidebar, a sortable list, a percentage split, a details panel, and an anchored layer following the selected item.
Command reflow shows automatic layout animation: a spring sidebar, a sortable list, a percentage split, a details panel, and an anchored layer following the selected item.
Command responsive is a reader that adapts to the terminal's size.
Command responsive is a reader that adapts to the terminal's size.
Command selection shows selecting text with the mouse, and copying it, in six kinds of node:
Command selection shows selecting text with the mouse, and copying it, in six kinds of node:
Command showcase puts much of bloom on one screen, colored with bubbletint themes.
Command showcase puts much of bloom on one screen, colored with bubbletint themes.
Command standard is the usual shape of a Bubble Tea program: a sidebar, a reader, and a status bar.
Command standard is the usual shape of a Bubble Tea program: a sidebar, a reader, and a status bar.
Command ticker is a market ticker driven by looping animation sequences: a headline bar scrolling across the window, a watchlist whose long names are cut off with "…" except the selected one, which scrolls, a banner that slides in, holds, and slides out again, and an indicator pulsing while the feed is live.
Command ticker is a market ticker driven by looping animation sequences: a headline bar scrolling across the window, a watchlist whose long names are cut off with "…" except the selected one, which scrolls, a banner that slides in, holds, and slides out again, and an indicator pulsing while the feed is live.
Command tooltips is a deployments view whose tooltips come from bloom.
Command tooltips is a deployments view whose tooltips come from bloom.
Command transitions is a gallery of reveal transitions and of the combinators that sequence, stagger, ease and reverse effects.
Command transitions is a gallery of reveal transitions and of the combinators that sequence, stagger, ease and reverse effects.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL