Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
B

bubbles

> 开发工具
Open source

TUI components for Bubble Tea

8.7K stars0 likes1 views
WebsiteGitHub

About

TUI components for Bubble Tea

Bubbles

Primitives for Bubble Tea applications. These components are used in production in Crush, and many other applications.

[!TIP]

Upgrading from v1? Check out the upgrade guide, or point your LLM at it and let it go to town.

Spinner

A spinner, useful for indicating that some kind an operation is happening. There are a couple default ones, but you can also pass your own ”frames.”

  • Example code, basic spinner
  • Example code, various spinners

Text Input

A text input field, akin to an <input type="text"> in HTML. Supports unicode, pasting, in-place scrolling when the value exceeds the width of the element and the common, and many customization options.

  • Example code, one field
  • Example code, many fields

Text Area

A text area field, akin to an <textarea /> in HTML. Allows for input that spans multiple lines. Supports unicode, pasting, vertical scrolling when the value exceeds the width and height of the element, and many customization options.

  • Example code, chat input
  • Example code, story time input

Table

A component for displaying and navigating tabular data (columns and rows). Supports vertical scrolling and many customization options.

  • Example code, countries and populations

Progress

A simple, customizable progress meter, with optional animation via Harmonica. Supports solid and gradient fills. The empty and filled runes can be set to whatever you'd like. The percentage readout is customizable and can also be omitted entirely.

  • Animated example
  • Static example

Paginator

A component for handling pagination logic and optionally drawing pagination UI. Supports "dot-style" pagination (similar to what you might see on iOS) and numeric page numbering, but you could also just use this component for the logic and visualize pagination however you like.

  • Example code

Viewport

A viewport for vertically scrolling content. Optionally includes standard pager keybindings and mouse wheel support. A high performance mode is available for applications which make use of the alternate screen buffer.

  • Example code

This component is well complemented with Reflow for ANSI-aware indenting and text wrapping.

List

A customizable, batteries-included component for browsing a set of items. Features pagination, fuzzy filtering, auto-generated help, an activity spinner, and status messages, all of which can be enabled and disabled as needed. Extrapolated from [Glow][glow].

  • Example code, default list
  • Example code, simple list
  • Example code, all features

File Picker

A customizable component for picking a file from the file system. Navigate through directories and select files, optionally limit to certain file extensions.

  • Example code

Timer

A simple, flexible component for counting down. The update frequency and output can be customized as you like.

  • Example code

Stopwatch

A simple, flexible component for counting up. The update frequency and output can be customized as you see fit.

  • Example code

Help

A customizable horizontal mini help view that automatically generates itself from your keybindings. It features single and multi-line modes, which the user can optionally toggle between. It will truncate gracefully if the terminal is too wide for the content.

  • Example code

Key

A non-visual component for managing keybindings. It’s useful for allowing users to remap keybindings as well as generating help views corresponding to your keybindings.

…

There’s more where that came from

To check out community-maintained Bubbles see Charm & Friends. Made a cool Bubble that you want to share? PRs are welcome!

Contributing

See contributing.

Feedback

We’d love to hear your thoughts on this project. Feel free to drop us a note!

  • Twitter
  • The Fediverse
  • Discord

License

MIT


Part of Charm.

Charm热爱开源 • Charm loves open source

Issues· 242 open

View all issuesOpen on GitHub
  • #1038

    BUG [Help Model]: Configured width is not respected in edge-case

    Updated Sep 28, 2026
  • #1045

    Bug: v is bound to Quit but displayed as Select in the list keymap

    Updated Sep 27, 2026
  • #1056

    textinput: alt+d panics on the last rune of the value and deletes an extra word on the last rune of a word

    Updated Sep 22, 2026
  • #1053

    table (v2): moving up from the last row scrolls the whole window instead of the cursor

    Updated Sep 20, 2026
  • #1049

    viewport: SetHighlights misplaces ranges on ANSI-carrying content

    Updated Sep 14, 2026
  • #1044

    textarea: expose the cursor as a byte offset into Value()

    enhancementUpdated Aug 26, 2026
  • #1043

    textarea: an optional hook for per-token line highlighting

    enhancementUpdated Aug 26, 2026
  • #1001

    v2: textinput Cursor() X ignores scroll offset when input overflows width

    Updated Aug 15, 2026
  • #906

    textinput: Cursor() returns incorrect X position for wide (CJK) characters

    Updated Aug 15, 2026
  • #1034

    Feature: add search to filepicker tool

    enhancementUpdated Aug 14, 2026

> Tags

Goclielm-architecturehacktoberfestterminal

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 29, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具