https://github.com/fireflycons/bubbles
Some components for Bubble Tea applications.
https://github.com/fireflycons/bubbles
Last synced: over 1 year ago
JSON representation
Some components for Bubble Tea applications.
- Host: GitHub
- URL: https://github.com/fireflycons/bubbles
- Owner: fireflycons
- License: mit
- Created: 2024-11-30T13:20:51.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-24T06:33:37.000Z (over 1 year ago)
- Last Synced: 2025-01-28T22:31:35.168Z (over 1 year ago)
- Language: Go
- Size: 49.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bubbles
Some components for [Bubble Tea](https://github.com/charmbracelet/bubbletea)
applications.
## xtable
Extended Table
A port of [table](https://github.com/charmbracelet/bubbles/tree/master#table) with additional functionality.
* Store metadata on rows. Good for attaching the source data for the row making it easier to perform operations on the selected row.
* Sort and Find methods.
* Ability to add row numbers as column zero.
* Ability to create a table directly from a slice of arbitrary structs implementing the Metadata interface.
* Ability to delete rows:
* At the cursor position
* By row index
* By hash value (Metadata interface)
* By object - passing a value that implements the Metadata interface
* Method to find the vertical offset of the selected row from the top of the visible rows in the table.
## messagebox
A simple message box overlay.