Versions in this module Expand all Collapse all v1 v1.0.0 Aug 21, 2025 Changes in this version + const Accent + const AccentDark + const AccentLight + const BottomCenter + const BottomLeft + const BottomRight + const TopCenter + const TopLeft + const TopRight + type HTMLGenerator struct + func NewHTMLGenerator() *HTMLGenerator + func (g *HTMLGenerator) DisplayAll(t *Toaster) (template.HTML, error) + type Icon string + func (i Icon) String() string + type Level string + const DefaultLevel + const ErrorLevel + const InfoLevel + const SuccessLevel + const WarningLevel + func (l Level) String() string + type Option func(*Toaster) + func WithAnimation(animation bool) Option + func WithAutoDismiss(autoDismiss bool) Option + func WithBorder(border bool) Option + func WithButton(button bool) Option + func WithIcon(level Level, iconSVG string) Option + func WithPosition(position Position) Option + func WithProgressBar(progressbar bool) Option + func WithRounded(rounded bool) Option + func WithShowIcon(icon bool) Option + func WithVariant(variant Variant) Option + type Position string + func (p Position) String() string + type Queue struct + func NewQueue() *Queue + func (q *Queue) Dequeue() (Toast, error) + func (q *Queue) Enqueue(toast Toast) + func (q *Queue) GetMessagesAndDequeue() []Toast + func (q *Queue) IsEmpty() bool + func (q *Queue) Size() int + func (q *Queue) String() string + type Toast struct + Level Level + Message string + func NewToast(msg string, level Level) Toast + type Toaster struct + Animation bool + AutoDismiss bool + Border bool + Button bool + Icons map[Level]string + Position Position + ProgressBar bool + Rounded bool + ShowIcon bool + Variant Variant + func NewToaster(options ...Option) *Toaster + func ToasterDefaults() *Toaster + func (t *Toaster) Default(message string) templ.Component + func (t *Toaster) Error(message string) templ.Component + func (t *Toaster) Info(message string) templ.Component + func (t *Toaster) PushDefault(message string) + func (t *Toaster) PushError(message string) + func (t *Toaster) PushInfo(message string) + func (t *Toaster) PushSuccess(message string) + func (t *Toaster) PushWarning(message string) + func (t *Toaster) Queue() *Queue + func (t *Toaster) RenderAll() templ.Component + func (t *Toaster) Success(message string) templ.Component + func (t *Toaster) ToViewModel() viewmodel.ToasterViewModel + func (t *Toaster) Warning(message string) templ.Component + type ToasterBuilder struct + func NewToasterBuilder() *ToasterBuilder + func (b *ToasterBuilder) Build() *Toaster + func (b *ToasterBuilder) WithAnimation(animation bool) *ToasterBuilder + func (b *ToasterBuilder) WithAutoDismiss(autoDismiss bool) *ToasterBuilder + func (b *ToasterBuilder) WithBorder(border bool) *ToasterBuilder + func (b *ToasterBuilder) WithButton(button bool) *ToasterBuilder + func (b *ToasterBuilder) WithIcon(level Level, iconSVG string) *ToasterBuilder + func (b *ToasterBuilder) WithOptions(options ...Option) *ToasterBuilder + func (b *ToasterBuilder) WithPosition(position Position) *ToasterBuilder + func (b *ToasterBuilder) WithProgressBar(progressBar bool) *ToasterBuilder + func (b *ToasterBuilder) WithRounded(rounded bool) *ToasterBuilder + func (b *ToasterBuilder) WithShowIcon(showIcon bool) *ToasterBuilder + func (b *ToasterBuilder) WithVariant(variant Variant) *ToasterBuilder + type Variant string + func (v Variant) String() string