Versions in this module Expand all Collapse all v0 v0.1.12 Jan 14, 2026 Changes in this version + var BlurBackdrop = BackdropStyle + var ButtonActiveStyle = ...(0, 1) + var ButtonInactiveStyle = ...(0, 1) + var DarkBackdrop = BackdropStyle + var DialogContainerStyle = ...(lipgloss.Color("#E0E0E0")) + var DialogDescriptionStyle = ...(1) + var DialogTitleStyle = ...(40) + var ErrorTextStyle = ...(1) + var HeavyBlurBackdrop = BackdropStyle + var HelpTextStyle = ...(lipgloss.Center) + var InputFieldFocusedStyle = ...(36) + var InputFieldStyle = ...(36) + var LightBackdrop = BackdropStyle + var ListItemHoverStyle = ...(0, 2) + var ListItemSelectedStyle = ...(0, 2) + var ListItemStyle = ...(0, 2) + var NoBackdrop = BackdropStyle + var PurpleBackdrop = BackdropStyle + var SuccessTextStyle = ...(true) + var WarningTextStyle = ...(true) + func CloseAllDialogs() tea.Cmd + func CloseDialog(dialogID string) tea.Cmd + func CloseTopDialog() tea.Cmd + func NewConfirmDialogWithConfig(config ConfirmDialogConfig, modalConfig ModalConfig) (*ConfirmDialog, ModalConfig) + func OpenDialog(dialog Dialog) tea.Cmd + func OpenModalWithConfig(dialog Dialog, config ModalConfig) tea.Cmd + func RenderBackdrop(width, height int) string + func RenderDialogBox(content string, width int) string + func SendDialogResult(dialogID string, result interface{}, err error) tea.Cmd + type AnimationConfig struct + Duration int + FadeIn bool + FadeOut bool + FinalAlpha float64 + InitialAlpha float64 + type BackdropRenderer struct + func NewBackdropRenderer(width, height int, style BackdropStyle) *BackdropRenderer + func (b *BackdropRenderer) Disable() + func (b *BackdropRenderer) Enable() + func (b *BackdropRenderer) GetOpacity() float64 + func (b *BackdropRenderer) GetStyle() BackdropStyle + func (b *BackdropRenderer) IsEnabled() bool + func (b *BackdropRenderer) Render() string + func (b *BackdropRenderer) SetOpacity(opacity float64) + func (b *BackdropRenderer) SetSize(width, height int) + func (b *BackdropRenderer) SetStyle(style BackdropStyle) + type BackdropStyle struct + BlurChars string + Color lipgloss.Color + Enabled bool + Opacity float64 + type CloseAllDialogsMsg struct + type CloseDialogMsg struct + DialogID string + type CommandPaletteMsg struct + type ConfirmDialog struct + func NewConfirmDialog(config ConfirmDialogConfig) *ConfirmDialog + func (d *ConfirmDialog) GetResult() *bool + func (d *ConfirmDialog) ID() string + func (d *ConfirmDialog) Init() tea.Cmd + func (d *ConfirmDialog) IsClosing() bool + func (d *ConfirmDialog) Result() interface{} + func (d *ConfirmDialog) SetSize(width, height int) + func (d *ConfirmDialog) Update(msg tea.Msg) (tea.Model, tea.Cmd) + func (d *ConfirmDialog) View() string + type ConfirmDialogConfig struct + DefaultYes bool + Description string + ID string + NoLabel string + Title string + YesLabel string + type Dialog interface + ID func() string + IsClosing func() bool + Result func() interface{} + SetSize func(width, height int) + type DialogManager struct + func NewDialogManager() *DialogManager + func (dm *DialogManager) Clear() + func (dm *DialogManager) CloseByID(id string) tea.Cmd + func (dm *DialogManager) CloseTop() tea.Cmd + func (dm *DialogManager) DisableFocusTrap() tea.Cmd + func (dm *DialogManager) EnableFocusTrap() tea.Cmd + func (dm *DialogManager) GetCount() int + func (dm *DialogManager) GetFocusTrap() *FocusTrap + func (dm *DialogManager) GetShortcutManager() *ShortcutManager + func (dm *DialogManager) GetTop() Dialog + func (dm *DialogManager) GetTopModal() *Modal + func (dm *DialogManager) HasDialogs() bool + func (dm *DialogManager) OpenModal(dialog Dialog, config ModalConfig) tea.Cmd + func (dm *DialogManager) RegisterShortcut(key string, handler func() tea.Msg) + func (dm *DialogManager) SetSize(width, height int) + func (dm *DialogManager) SetZIndex(id string, zIndex int) tea.Cmd + func (dm *DialogManager) Update(msg tea.Msg) tea.Cmd + func (dm *DialogManager) View() string + type DialogResultMsg struct + DialogID string + Error error + Result interface{} + type FilePickerMsg struct + type FocusTrap struct + func NewFocusTrap() *FocusTrap + func (f *FocusTrap) Activate() + func (f *FocusTrap) AddFocusableElement(id string) + func (f *FocusTrap) ClearFocusableElements() + func (f *FocusTrap) Deactivate() + func (f *FocusTrap) Disable() + func (f *FocusTrap) Enable() + func (f *FocusTrap) FocusFirst() string + func (f *FocusTrap) FocusLast() string + func (f *FocusTrap) GetCurrentFocusID() string + func (f *FocusTrap) GetCurrentFocusIndex() int + func (f *FocusTrap) GetFocusableCount() int + func (f *FocusTrap) GetFocusableElements() []string + func (f *FocusTrap) HandleKey(key string) (handled bool, nextFocus string) + func (f *FocusTrap) HandleMessage(msg tea.Msg) (handled bool, nextFocus string, cmd tea.Cmd) + func (f *FocusTrap) HasFocusableElements() bool + func (f *FocusTrap) IsActive() bool + func (f *FocusTrap) IsEnabled() bool + func (f *FocusTrap) NextFocusable() string + func (f *FocusTrap) PrevFocusable() string + func (f *FocusTrap) RemoveFocusableElement(id string) + func (f *FocusTrap) Reset() + func (f *FocusTrap) SetCurrentFocusIndex(index int) + func (f *FocusTrap) SetFocusableElements(ids []string) + type HelpMsg struct + type InputDialog struct + func NewInputDialog(config InputDialogConfig) *InputDialog + func (d *InputDialog) GetResult() *string + func (d *InputDialog) ID() string + func (d *InputDialog) Init() tea.Cmd + func (d *InputDialog) IsClosing() bool + func (d *InputDialog) Result() interface{} + func (d *InputDialog) SetSize(width, height int) + func (d *InputDialog) Update(msg tea.Msg) (tea.Model, tea.Cmd) + func (d *InputDialog) View() string + type InputDialogConfig struct + DefaultValue string + Description string + ID string + Placeholder string + Title string + Validator func(string) error + type Modal struct + func NewModal(dialog Dialog, config ModalConfig) *Modal + func (m *Modal) CalculatePosition(containerWidth, containerHeight int) + func (m *Modal) GetConfig() ModalConfig + func (m *Modal) GetDialog() Dialog + func (m *Modal) GetPosition() (int, int) + func (m *Modal) GetZIndex() int + func (m *Modal) HasFocusTrap() bool + func (m *Modal) ID() string + func (m *Modal) Init() tea.Cmd + func (m *Modal) IsClosing() bool + func (m *Modal) IsFocused() bool + func (m *Modal) IsVisible() bool + func (m *Modal) Result() interface{} + func (m *Modal) SetFocused(focused bool) + func (m *Modal) SetPosition(x, y int) + func (m *Modal) SetSize(width, height int) + func (m *Modal) SetVisible(visible bool) + func (m *Modal) SetZIndex(zIndex int) + func (m *Modal) ShouldCloseOnBackdrop() bool + func (m *Modal) ShouldCloseOnEsc() bool + func (m *Modal) Update(msg tea.Msg) (tea.Model, tea.Cmd) + func (m *Modal) View() string + type ModalConfig struct + AnimationConfig *AnimationConfig + Backdrop BackdropStyle + CenterX bool + CenterY bool + CloseOnBackdrop bool + CloseOnEsc bool + MaxHeight int + MaxWidth int + TrapFocus bool + ZIndex int + func BlurModalConfig() ModalConfig + func DefaultModalConfig() ModalConfig + func MinimalModalConfig() ModalConfig + type OpenDialogMsg struct + Dialog Dialog + type OpenModalMsg struct + Config ModalConfig + Dialog Dialog + type SearchMsg struct + type SelectDialog struct + func NewSelectDialog(config SelectDialogConfig) *SelectDialog + func (d *SelectDialog) GetResult() *string + func (d *SelectDialog) GetSelectedOption() *SelectOption + func (d *SelectDialog) ID() string + func (d *SelectDialog) Init() tea.Cmd + func (d *SelectDialog) IsClosing() bool + func (d *SelectDialog) Result() interface{} + func (d *SelectDialog) SetSize(width, height int) + func (d *SelectDialog) Update(msg tea.Msg) (tea.Model, tea.Cmd) + func (d *SelectDialog) View() string + type SelectDialogConfig struct + DefaultIdx int + Description string + ID string + Options []SelectOption + Searchable bool + Title string + type SelectOption struct + Description string + Label string + Value string + type SettingsMsg struct + type ShortcutHandler func() tea.Msg + type ShortcutInfo struct + Description string + Key string + func GetCommonShortcutHelp() []ShortcutInfo + type ShortcutManager struct + func NewShortcutManager() *ShortcutManager + func (s *ShortcutManager) ClearShortcuts() + func (s *ShortcutManager) Disable() + func (s *ShortcutManager) Enable() + func (s *ShortcutManager) GetAllShortcuts() map[string]ShortcutHandler + func (s *ShortcutManager) GetShortcut(key string) ShortcutHandler + func (s *ShortcutManager) GetShortcutCount() int + func (s *ShortcutManager) GetShortcutKeys() []string + func (s *ShortcutManager) HandleKey(key string) (bool, tea.Cmd) + func (s *ShortcutManager) HandleMessage(msg tea.Msg) (bool, tea.Cmd) + func (s *ShortcutManager) HasShortcut(key string) bool + func (s *ShortcutManager) IsEnabled() bool + func (s *ShortcutManager) RegisterCommandPalette(handler ShortcutHandler) + func (s *ShortcutManager) RegisterCommonShortcuts() + func (s *ShortcutManager) RegisterFilePicker(handler ShortcutHandler) + func (s *ShortcutManager) RegisterHelp(handler ShortcutHandler) + func (s *ShortcutManager) RegisterSearch(handler ShortcutHandler) + func (s *ShortcutManager) RegisterSettings(handler ShortcutHandler) + func (s *ShortcutManager) RegisterShortcut(key string, handler ShortcutHandler) + func (s *ShortcutManager) Toggle() + func (s *ShortcutManager) UnregisterShortcut(key string)