类型 SonnerOptions
API 文档由 Go 源码生成,内容为英文。
type SonnerOptions struct {
Layer uint16
Expanded bool
// Limit is how many of the newest toasts show; the zero value is Base UI's 3.
// Older ones are not painted.
Limit int
// Position is where the stack grows from; the zero value is the bottom right.
Position ToastPosition
}SonnerOptions configures one stateless paint of a caller-owned stack. Toasts are ordered newest first. Layer is the oldest toast's layer; each newer toast receives the next layer so collapsed cards composite correctly.