Documentation
¶
Overview ¶
Package keyhints renders a compact footer of "<key> <description>" pairs separated by a thin divider. It's the bottom-row cheatsheet almost every TUI grows into; building it as a primitive saves the same render code from being rewritten in every parent model.
Hints are pure render: there is no Update, no message. Build the hint set from your model and let key-hints lay it out.
Index ¶
Constants ¶
View Source
const DefaultSeparator = " "
Default separator placed between adjacent hints.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bar ¶
type Bar struct {
// contains filtered or unexported fields
}
Bar is a row of key hints.
func (Bar) WithSeparator ¶
WithSeparator overrides the inter-hint separator.
Click to show internal directories.
Click to hide internal directories.
