notification

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: MIT Imports: 3 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 Model

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

func New

func New(s *styles.Palette) Model

func (*Model) Hide

func (m *Model) Hide()

func (Model) Init

func (m Model) Init() tea.Cmd

func (*Model) Set

func (m *Model) Set(message string, notifType Type)

func (*Model) Show

func (m *Model) Show(message string) tea.Cmd

func (*Model) ShowInfo

func (m *Model) ShowInfo(message string) tea.Cmd

func (*Model) ShowWarning

func (m *Model) ShowWarning(message string) tea.Cmd

func (*Model) ShowWithTimeout

func (m *Model) ShowWithTimeout(message string, notifType Type, timeout time.Duration) tea.Cmd

func (*Model) ShowWithType

func (m *Model) ShowWithType(message string, notifType Type) tea.Cmd

func (Model) Update

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

func (Model) View

func (m Model) View() string

func (Model) Visible

func (m Model) Visible() bool

type Type

type Type int
const (
	TypeSuccess Type = iota
	TypeInfo
	TypeWarning
)

Jump to

Keyboard shortcuts

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