modal

@Composable
fun IComponent.modal(caption: String? = null, closeButton: Boolean = true, closeButtonAction: () -> Unit? = null, size: ModalSize? = null, fullscreenMode: FullscreenMode? = null, animation: Boolean = true, centered: Boolean = false, scrollable: Boolean = false, escape: Boolean = true, className: String? = null, id: String? = null, content: @Composable IModal.() -> Unit = {})

Creates a Modal component.

Parameters

caption

the caption of the modal window

closeButton

determines if the close button is visible

closeButtonAction

the close button action (if not provided, the modal will be closed)

size

the size of the modal window

fullscreenMode

the fullscreen mode of the modal window

animation

determines if the modal window is animated

centered

determines if the modal window is vertically centered

scrollable

determines if the modal window content is scrollable

escape

determines if the modal window can be closed by pressing the escape key

className

the CSS class name

id

the ID attribute of the modal window

content

the content of the modal window