confirm

package
v0.17.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package confirm demonstrates pkg/confirm in the standard modal pattern: a list of files, press d to delete; a confirm dialog overlays the list via layout.ZStack(base, layout.Center(...)). The parent screen owns show/hide state and gates IsCapturingKeys; the modal owns input while up.

Result handling is fully bubbletea-idiomatic — the modal returns a confirm.ConfirmedMsg or confirm.CancelledMsg via tea.Cmd, the parent matches in its own Update, dismisses the modal, and reports the outcome to the statusbar via app.Info.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(t theme.Theme) screen.Screen

New returns the confirm demo's root screen.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL