Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
PromptPrefix string
Prompt string
Placeholder string
CharLimit int
MaxWidth int
EchoMode textinput.EchoMode
Validate ValidateFunc
Styles Styles
Suggest func(input string) []string
SuggestionPrefix string
// contains filtered or unexported fields
}
Model represents the bubble tea model for the input
type Styles ¶
type Styles struct {
PromptPrefix lipgloss.Style
Prompt lipgloss.Style
ErrorPrefix lipgloss.Style
Text lipgloss.Style
Placeholder lipgloss.Style
Suggestions lipgloss.Style
}
Styles holds relevant styles used for rendering For an introduction to styling with Lip Gloss see: https://github.com/charmbracelet/lipgloss
type ValidateFunc ¶
ValidateFunc determines if the input string is valid, returning nil if valid or an error if invalid
Click to show internal directories.
Click to hide internal directories.