errormodal

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(message string, terminalWidth int) tea.Model

New creates a new error modal with the given message.

Types

type Model

type Model struct {
	// contains filtered or unexported fields
}

Model is a modal that displays an error message and closes on esc or any dismiss key. It is used for foreground errors (docker actions, config loads) where a modal is less disruptive than the banner.

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Model) View

func (m Model) View() tea.View

Jump to

Keyboard shortcuts

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