Skip to main content

Module components

Module components 

Source
Expand description

Re-exports of all UI building blocks.

§Component overview

ComponentDescription
asciiimgPixel-art image renderer
badgeSmall inline status badge
bigtextFIGlet-style large text
blockTitled bordered container (BobaBlock)
borderCustomizable box-drawing border
buttonStyled button with variants and callbacks
canvasLow-level pixel drawing surface
effectPost-processing effects (scanlines, glow, etc.)
filepickerFile/directory browser
formTab-navigable form with labeled fields
helpKeyboard shortcut legend
inputSingle-line text input
layerLayer stack compositor
layoutFlex-like layout helpers + mouse dispatcher
listScrollable selectable list
modalModal dialog overlay
paginatorDot-indicator page selector
progressHorizontal progress bar
spinnerAnimated loading spinner
stopwatchElapsed-time display
syntaxSyntax-highlighted code block
tableColumn-aligned table with selection
tabsHorizontal tab bar
textareaMulti-line text editor
toastToast notification pop-up
treeCollapsible tree navigator
viewportScrollable viewport into a larger canvas

See the Component trait for the interface all interactive widgets implement.

Modules§

asciiimg
Simple ASCII-art image renderer.
badge
Small badge / pill labels.
bigtext
Large ASCII-art text using figlet fonts.
block
Opinionated block wrappers with a fluent builder API.
border
Custom borders for styled strings and surfaces.
button
Styled button component with variants, callbacks, and event handling.
canvas
Raw canvas — direct access to a Buffer for custom drawing.
effect
Screen-space effects that mutate a Buffer after widgets have rendered.
filepicker
File picker / directory tree browser.
form
Form container — groups inputs, buttons, and lists with automatic focus/tab management.
help
Help / keybind hint bar — contextual shortcuts display.
input
layer
Layer compositor — stack widgets with optional screen-space effects.
layout
Mouse hitbox tracking and responsive auto-layout.
list
modal
Modal / Dialog component for overlays.
paginator
Pagination controls.
pattern
Pattern and gradient fills for foreground, background, and borders.
powerline
Powerline-style status bar and command palette.
progress
reactive
Reactive text elements that auto-update when Mutable content changes.
spinner
stopwatch
Simple stopwatch / timer component.
style
Opinionated style wrappers with layout primitives.
syntax
Syntax-highlighted code block.
table
Data table component with sortable columns and keyboard navigation.
tabs
Tab bar component with reactive binding and callbacks.
textarea
Multiline text area — like <textarea> but for the terminal.
toast
tree
Tree view — collapsible hierarchical list.
viewport
Scrollable viewport that crops a larger virtual area into a visible window.

Traits§

Component
The core interface for an interactive UI component.