SigmaKit.Components.Modal (sigma_kit v0.0.1)
Summary
Functions
Renders a modal.
Examples
<.modal id="confirm-modal">
This is a modal.
</.modal>
JS commands may be passed to the :on_cancel
to configure
the closing/cancel event, for example:
<.modal id="confirm" on_cancel={JS.navigate(~p"/posts")}>
This is another modal.
</.modal>
Attributes
id
(:string
) (required)show
(:boolean
) - Defaults tofalse
.title
(:string
) - Defaults tonil
.on_cancel
(Phoenix.LiveView.JS
) - Defaults to%Phoenix.LiveView.JS{ops: []}
.form
(:any
) - Defaults tonil
.as
(:any
) - Defaults tonil
.noclose
(:boolean
) - Defaults tofalse
.submit
(:string
) - Defaults to"submit"
.change
(:string
) - Defaults to"validate"
.submit_text
(:string
) - Defaults to"Submit"
.target
(:any
) - Defaults tonil
.wide
(:boolean
) - Defaults totrue
.error
(:string
) - Defaults tonil
.
Slots
inner_block
(required)description
actions