notification

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HideMsg

type HideMsg struct{}

type Notification

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

Notification represents a notification component that displays a message in the bottom right corner of the screen

func New

func New() Notification

func (*Notification) GetLayer

func (n *Notification) GetLayer() *lipgloss.Layer

func (*Notification) IsVisible

func (n *Notification) IsVisible() bool

func (*Notification) SetSize

func (n *Notification) SetSize(width, height int)

func (*Notification) Update

func (n *Notification) Update(msg tea.Msg) (Notification, tea.Cmd)

func (*Notification) View

func (n *Notification) View() string

type ShowMsg

type ShowMsg struct {
	Text string
}

type State

type State int
const (
	StateHidden State = iota
	StateVisible
)

Jump to

Keyboard shortcuts

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