Documentation
¶
Overview ¶
Package toast provides a toast notification component for the app.
Index ¶
Constants ¶
View Source
const DefaultTTL = 5 * time.Second
DefaultTTL is how long a toast shows before auto-dismissing.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model holds the toast state and renders it. It is a fixed-height component - height is 0 when no toast, 1 when showing.
func (*Model) Height ¶
Height returns the number of lines this component renders. Always returns 1 to reserve space and prevent layout shifts.
Click to show internal directories.
Click to hide internal directories.