bubbles

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfirmPrompt

type ConfirmPrompt struct {
	Question    string
	Style       lipgloss.Style
	ReasonStyle lipgloss.Style
	OnConfirm   tea.Cmd
	// OnDecline is called when the user declines, with an optional reason
	// string entered by the user. May be nil.
	OnDecline func(reason string) tea.Msg
	// AskReason shows a reason input when the user declines. The entered
	// reason is passed to OnDecline. Only meaningful when OnDecline is non-nil.
	AskReason bool
	// contains filtered or unexported fields
}

func NewConfirmPrompt

func NewConfirmPrompt(question string, onConfirm tea.Cmd, onDecline func(reason string) tea.Msg) ConfirmPrompt

func (ConfirmPrompt) Answered

func (b ConfirmPrompt) Answered() bool

func (*ConfirmPrompt) Blur

func (b *ConfirmPrompt) Blur()

func (ConfirmPrompt) Confirmed

func (b ConfirmPrompt) Confirmed() bool

func (ConfirmPrompt) Declining

func (b ConfirmPrompt) Declining() bool

func (*ConfirmPrompt) Focus

func (b *ConfirmPrompt) Focus()

func (ConfirmPrompt) Focused

func (b ConfirmPrompt) Focused() bool

func (ConfirmPrompt) Update

func (b ConfirmPrompt) Update(msg tea.Msg) (ConfirmPrompt, tea.Cmd)

func (ConfirmPrompt) View

func (b ConfirmPrompt) View() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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