Observer.Web.Layouts (Observer Web v0.2.4)

View Source

This module provides layouts

References:

Summary

Functions

flash(assigns)

Renders flash notices.

Examples

<.flash kind={:info} flash={@flash} />
<.flash kind={:info} phx-mounted={show("#flash")}>Welcome Back!</.flash>

Attributes

  • id (:string) - the optional id of flash container.
  • flash (:map) - the map of flash messages to display. Defaults to %{}.
  • title (:string) - Defaults to nil.
  • kind (:atom) - used for styling and flash lookup. Must be one of :info, or :error.
  • Global attributes are accepted. the arbitrary HTML attributes to add to the flash container.

Slots

  • inner_block - the optional inner block that renders the flash message.

footer(assigns)

hide(js \\ %JS{}, selector)

live(assigns)

logo(assigns)

Attributes

  • params (:map) (required)
  • path (:string) - Defaults to nil.

root(assigns)