We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 387c0db commit fcc73c5Copy full SHA for fcc73c5
src/lib/modules/modals/ModalContainer.svelte
@@ -60,7 +60,7 @@
60
</script>
61
62
<dialog class="modal modal-bottom sm:modal-middle" use:setDialog>
63
- <div class="modal-box">
+ <div class="modal-box {currentModal?.options?.modalClass || ''}">
64
<div class="sui-dialog">
65
{#if previousModal || currentModal?.options?.title}
66
<div class="sui-dialog-title flex flex-row gap-2 place-items-center">
src/lib/modules/modals/modal.service.svelte.ts
@@ -39,6 +39,7 @@ export interface ModalOptions<RETURN_TYPE = any> {
39
/** if set, the given prop will automatically passed to the component as the closing function */
40
closingPropName?: string;
41
buttons?: ModalButton[];
42
+ modalClass?: string;
43
}
44
45
export interface ModalComponent {
0 commit comments