Documentation
¶
Overview ¶
Package components provides reusable TUI components.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConfirmModal ¶
type ConfirmModal struct {
// contains filtered or unexported fields
}
ConfirmModal is a simple yes/no confirmation dialog.
func NewConfirmModal ¶
func NewConfirmModal(message string) ConfirmModal
NewConfirmModal creates a new confirmation modal.
func (ConfirmModal) Cancelled ¶
func (m ConfirmModal) Cancelled() bool
Cancelled returns true if user cancelled.
func (ConfirmModal) Confirmed ¶
func (m ConfirmModal) Confirmed() bool
Confirmed returns true if user confirmed.
func (ConfirmModal) Update ¶
func (m ConfirmModal) Update(msg tea.Msg) (ConfirmModal, tea.Cmd)
Update handles input for the confirmation modal.
type HelpDialog ¶
type HelpDialog struct {
// contains filtered or unexported fields
}
HelpDialog displays all available keyboard shortcuts.
func NewHelpDialog ¶
func NewHelpDialog(title string, sections []HelpDialogSection, width, height int) *HelpDialog
NewHelpDialog creates a new help dialog with the given sections.
type HelpDialogSection ¶
HelpDialogSection groups related help entries under a title.
Click to show internal directories.
Click to hide internal directories.