Versions in this module Expand all Collapse all v1 v1.0.6 Oct 14, 2024 Changes in this version + var FgBlue = lipgloss.NewStyle().Foreground(lipgloss.Color("#1E90FF")) + var FgCyan = lipgloss.NewStyle().Foreground(lipgloss.Color("#00B2FF")) + var FgGreen = lipgloss.NewStyle().Foreground(lipgloss.Color("#00FF00")) + var FgHiBlack = lipgloss.NewStyle().Foreground(lipgloss.Color("#A9A9A9")) + var FgRed = lipgloss.NewStyle().Foreground(lipgloss.Color("#FF0000")) + var FgWhite = lipgloss.NewStyle().Foreground(lipgloss.Color("#FFFFFF")) v1.0.5 Oct 12, 2024 Changes in this version + func LoadingPromptMessage(spinner string, contentText string) string + func PromptMessage(contentText string, mode PromptMessageMode) string + type PromptMessageMode int + const DefaultMode + const ErrorMode + const SuccessMode v1.0.4 Oct 11, 2024 Changes in this version + func Banner() string + func StyleText(text string, colorAttr color.Attribute, bold bool) string + type ChoiceItem struct + Label string + Title string + type Input struct + func NewInput(promptText string) *Input + func (s *Input) Update(keyMsg tea.KeyMsg) tea.Cmd + func (s Input) GetContentText() string + func (s Input) Prefix() string + func (s Input) PromptText() string + func (s Input) Suffix() string + func (s Input) View() string + type Selector struct + func NewSelector(promptText string, options []ChoiceItem) *Selector + func (s *Selector) Reset() + func (s *Selector) Update(msg tea.Msg) tea.Cmd + func (s Selector) Confirmed() bool + func (s Selector) RenderOptions() string + func (s Selector) RenderPromptText(promptText, resultText string, finish bool) string + func (s Selector) View() string + type TextFormatter struct + func Text(text string) *TextFormatter + func (tf *TextFormatter) Bold() *TextFormatter + func (tf *TextFormatter) Color(attr color.Attribute) *TextFormatter + func (tf *TextFormatter) String() string