component

package
v1.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FgGreen   = lipgloss.NewStyle().Foreground(lipgloss.Color("#00FF00"))
	FgWhite   = lipgloss.NewStyle().Foreground(lipgloss.Color("#FFFFFF"))
	FgRed     = lipgloss.NewStyle().Foreground(lipgloss.Color("#FF0000"))
	FgCyan    = lipgloss.NewStyle().Foreground(lipgloss.Color("#00B2FF"))
	FgBlue    = lipgloss.NewStyle().Foreground(lipgloss.Color("#1E90FF"))
	FgHiBlack = lipgloss.NewStyle().Foreground(lipgloss.Color("#A9A9A9"))
)

Functions

func LoadingPromptMessage added in v1.0.5

func LoadingPromptMessage(spinner string, contentText string) string

func PromptMessage added in v1.0.5

func PromptMessage(contentText string, mode PromptMessageMode) string

Types

type PromptMessageMode added in v1.0.5

type PromptMessageMode int
const (
	SuccessMode PromptMessageMode = iota // 成功
	ErrorMode                            // 错误
	DefaultMode                          // 默认
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL