Documentation
¶
Index ¶
- func ButtonView(text string, focused bool) string
- func CancelButtonView(focused bool, defaultButton bool) string
- func HelpView(sections ...string) string
- func IsTTY() bool
- func KeyValueView(stuff ...string) string
- func NewSpinner() spinner.Model
- func NoButtonView(focused bool) string
- func OKButtonView(focused bool, defaultButton bool) string
- func VerticalLine(state State) string
- func YesButtonView(focused bool) string
- type State
- type Styles
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ButtonView ¶
ButtonView renders something that resembles a button.
func CancelButtonView ¶
CancelButtonView returns a button reading "Cancel.".
func HelpView ¶
HelpView renders text intended to display at help text, often at the bottom of a view.
func NewSpinner ¶ added in v0.9.0
NewSpinner returns a spinner model.
func NoButtonView ¶
NoButtonView returns a button reading "No.".
func OKButtonView ¶
OKButtonView returns a button reading "OK".
func VerticalLine ¶
VerticalLine return a vertical line colored according to the given state.
func YesButtonView ¶
YesButtonView return a button reading "Yes".
Types ¶
type Styles ¶ added in v0.9.0
type Styles struct {
Cursor,
Wrap,
Paragraph,
Keyword,
Code,
Subtle,
Error,
Prompt,
FocusedPrompt,
Note,
NoteDim,
Delete,
DeleteDim,
Label,
LabelDim,
ListKey,
ListDim,
InactivePagination,
SelectionMarker,
SelectedMenuItem,
Checkmark,
Logo,
App lipgloss.Style
}
Styles describes style definitions for various portions of the Charm TUI.
func DefaultStyles ¶ added in v0.9.0
func DefaultStyles() Styles
DefaultStyles returns default styles for the Charm TUI.
Click to show internal directories.
Click to hide internal directories.