View Source PhoenixDuskmoon.Modal (PhoenixDuskmoon v4.4.0)

Link to this section Summary

Functions

Open ad dialog modal.

Link to this section Functions

Open ad dialog modal.

examples

Examples

<.dm_modal>
  <:trigger :let={f}>
    <button phx-click={f}>Open</button>
  </:trigger>
  <:title>PhoenixDuskmoon</:title>
  <:body>PhoenixDuskmoon Storybook</:body>
</.dm_modal>

attributes

Attributes

  • id (:any) - Modal id.
  • class (:any) - Modal class. Defaults to "".
  • hide_close (:boolean) - Hide top right close button. Defaults to false.

slots

Slots

  • trigger - Modal trigger.
  • title - Modal title. Accepts attributes:
    • class (:any) - html class.
  • body (required) - Modal content.
  • footer - Modal footer, buttons. Accepts attributes:
    • class (:any) - html class.