DevactionUI.Alert (devaction_ui v0.1.0)

Copy Markdown View Source

A short message under a form or at the top of a screen: it worked, the AI did something, here is how it is, this failed. Smaller than a Callout: one line of title and a line or two of text, with an icon. kind: :risk is announced as an alert; the others as a status.

Summary

Functions

alert(assigns)

Attributes

  • kind (:atom) - Defaults to :info. Must be one of :ok, :ai, :info, or :risk.
  • title (:string) (required)
  • class (:any) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block
  • icon - the icon, drawn by the caller.