View Source PhoenixDuskmoon.Modal (PhoenixDuskmoon v4.5.0)
Summary
Functions
Open ad dialog modal.
Functions
Open ad dialog modal.
Examples
<.dm_modal>
<:trigger :let={f}>
<button phx-click={f}>Open</button>
</:trigger>
<:title>PhoenixDuskmoon</:title>
<:body>PhoenixDuskmoon Storybook</:body>
</.dm_modal>
Attributes
id
(:any
) - Modal id.class
(:any
) - Modal class. Defaults to""
.hide_close
(:boolean
) - Hide top right close button. Defaults tofalse
.
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.