Documentation
¶
Overview ¶
Package statusbar renders a single-line, three-segment status bar. Items in the left segment fill from the left, items in the right fill from the right, and an optional center segment is placed at the visual center. When width is tight the left segment truncates first so the right segment stays visible.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bar ¶
type Bar struct {
// contains filtered or unexported fields
}
Bar is a Bubble Tea-compatible status bar. It implements no Update; composition with a parent model is the expected pattern.
func (Bar) View ¶
View renders the bar as a single line padded to width. The bar has no border; consumers can wrap it with lipgloss themselves.
func (Bar) WithCenter ¶
WithCenter sets the center segment.
func (Bar) WithSeparator ¶
WithSeparator replaces the default " · " between items within a segment.
