PUI.Flash.Primitive (pui v1.0.0)

Copy Markdown

Zero-style flash viewport and toast parts.

The primitive exposes the same positioning, stacking, and timeout data contract as PUI.Flash, while leaving the visual treatment to the caller.

Summary

Functions

close(assigns)

Attributes

  • Global attributes are accepted.

Slots

  • inner_block (required)

container(assigns)

Attributes

  • id (:string) (required)
  • position (:string) - Defaults to "bottom-right".
  • stacked (:boolean) - Defaults to false.
  • timeout (:integer) - Defaults to 5000.
  • live_component (:boolean) - Defaults to false.
  • Global attributes are accepted.

Slots

  • inner_block (required)

toast(assigns)

Attributes

  • id (:string) (required)
  • position (:string) - Defaults to "bottom-right".
  • duration (:integer) - Defaults to 5000.
  • timeout (:integer) - Defaults to nil.
  • auto_dismiss (:boolean) - Defaults to true.
  • Global attributes are accepted.

Slots

  • inner_block (required)