Documentation
¶
Index ¶
- Constants
- type CustomToastStyle
- type Manager
- func (m Manager) DismissAll() tea.Cmd
- func (m Manager) Push(message string, toastType Type, duration time.Duration) tea.Cmd
- func (m Manager) SetSize(width, height int) Manager
- func (m Manager) Update(msg tea.Msg) (Manager, tea.Cmd)
- func (m Manager) View() string
- func (m Manager) WithMaxToasts(max int) Manager
- func (m Manager) WithPosition(pos position) Manager
- func (m Manager) WithStyle(prefixType Type, prefix string, style lipgloss.Style) Manager
- func (m Manager) WithWidth(width int) Manager
- type Type
Constants ¶
View Source
const ( TopLeft position = iota TopCenter TopRight BottomLeft BottomCenter BottomRight )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomToastStyle ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager handles the lifecycle of toasts
func (Manager) DismissAll ¶
func (Manager) WithMaxToasts ¶
WithMaxToasts sets the maximum number of visible toasts
func (Manager) WithPosition ¶
WithPosition sets the position for toast notifications
Click to show internal directories.
Click to hide internal directories.

