Lavash.Overlay.Modal.Helpers (Lavash v0.3.0-rc.0)

Copy Markdown View Source

Helper components for modal rendering.

These components provide the modal chrome (backdrop, container, escape handling) while letting the user define the content.

Summary

Functions

Default loading template for modals.

Renders modal chrome around content with optimistic close animations.

A close button for modal headers using DaisyUI button classes.

Renders modal content with async_result wrapping if a form is specified.

Functions

default_loading(assigns)

Default loading template for modals.

Shows a DaisyUI skeleton loader while content loads.