Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultMask = '●'
View Source
const DefaultTemplate = `
{{- .Prompt }}
> {{ .Input -}}
`
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TextInput ¶
type TextInput struct {
Prompt string
Placeholder string
InitialValue string
Validate func(string) error
AutoComplete func(string) []string
Hidden bool
HideMask rune
CharLimit int
InputWidth int
Template string
ResultTemplate string
ExtendedTemplateFuncs template.FuncMap
// Styles of the actual input field. These will be applied as inline styles.
//
// For an introduction to styling with Lip Gloss see:
// https://github.com/charmbracelet/lipgloss
InputTextStyle lipgloss.Style
InputBackgroundStyle lipgloss.Style // Deprecated: This property is not used anymore.
InputPlaceholderStyle lipgloss.Style
InputCursorStyle lipgloss.Style
WrapMode promptkit.WrapMode
Output io.Writer
Input io.Reader
ColorProfile termenv.Profile
}
Click to show internal directories.
Click to hide internal directories.