Vibe.UI.Notification (vibe v0.2.3)

Copy Markdown View Source

Transient notification state for TUI and web UI.

Summary

Types

level()

@type level() :: :info | :success | :warning | :error | atom()

t()

@type t() :: %Vibe.UI.Notification{id: term(), level: level(), text: String.t()}

Functions

new(notification)

@spec new(t() | map() | keyword() | String.t()) :: t()