package
0.9.0
Repository: https://github.com/erikgeiser/promptkit.git
Documentation: pkg.go.dev

# Functions

DefaultFinalChoiceStyle is the default style for final choices.
DefaultSelectedChoiceStyle is the default style for selected choices.
FilterContainsCaseInsensitive returns true if the string representation of the choice contains the filter string without regard for capitalization.
FilterContainsCaseSensitive returns true if the string representation of the choice contains the filter string respecting capitalization.
New creates a new selection prompt.
NewDefaultKeyMap returns a KeyMap with sensible default key mappings that can also be used as a starting point for customization.
NewModel returns a new selection prompt model for the provided choices.

# Constants

DefaultFilterPlaceholder is printed by default when no filter text was entered yet.
DefaultFilterPrompt is the default prompt for the filter input when filtering is enabled.
DefaultResultTemplate defines the default appearance with which the finale result of the selection is presented.
DefaultTemplate defines the default appearance of the selection and can be copied as a starting point for a custom template.

# Structs

Choice represents a single choice.
KeyMap defines the keys that trigger certain actions.
Model implements the bubbletea.Model for a selection prompt.
Selection represents a configurable selection prompt.