Documentation
¶
Overview ¶
Package dialog is a modal yes/no confirmation dialog TUI component.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyTheme ¶
ApplyTheme updates button styles to match the active theme.
Types ¶
type ButtonOpts ¶
type ButtonOpts struct {
Text string
UnderlineIndex int // char index to underline as mnemonic; -1 to disable
}
ButtonOpts configures a single dialog button.
type ConfirmMsg ¶
ConfirmMsg is dispatched when the user confirms a button selection.
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is the dialog modal component.
func New ¶
func New(title, body string, buttons []ButtonOpts, w, h int) Model
New creates a dialog with the given title, body, and buttons.
Click to show internal directories.
Click to hide internal directories.