Documentation
¶
Overview ¶
Package confirm provides a simple confirmation dialog component
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( InactiveButtonStyle = lipgloss.NewStyle(). Foreground(colors.InactiveButtonFg). Background(colors.InactiveButtonBg). Padding(buttonPadding...). Margin(buttonMargin...) )
View Source
var Keys = KeyMap{ Toggle: key.NewBinding( key.WithKeys("tab", "h", "l", "left", "right"), key.WithHelp("", "toggle"), ), Confirm: key.NewBinding( key.WithKeys("y", "Y"), key.WithHelp("y", "confirm"), ), Cancel: key.NewBinding( key.WithKeys("n", "N"), key.WithHelp("n", "cancel"), ), Submit: key.NewBinding( key.WithKeys("enter"), key.WithHelp("enter", "submit"), ), Quit: key.NewBinding( key.WithKeys("ctrl+c", "q"), key.WithHelp("q", "quit"), ), }
Functions ¶
This section is empty.
Types ¶
type KeyMap ¶
Click to show internal directories.
Click to hide internal directories.