groovinads-ui 1.9.845 → 1.9.889

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1062,6 +1062,7 @@ import { ModalComponent } from 'groovinads-ui';
1062
1062
  | `children` | Node | Yes | n/a | n/a | Allows inserting custom content within the Modal. |
1063
1063
  | `footer` | Node | No | n/a | n/a | Allows inserting custom content within the Modal footer. If not provided, the footer is not displayed. |
1064
1064
  | `header` | String / Node | Yes | n/a | n/a | Allows inserting custom content within the Modal header. |
1065
+ | `onBeforeClose` | Function | No | n/a | n/a | Callback function called before closing the modal (on backdrop click, ESC key, or X button). Useful for showing confirmation dialogs before closing. When provided, the modal won't close automatically - you control when to close it. |
1065
1066
  | `setShow` | Function | Yes | n/a | n/a | Function to toggle the visibility state between visible and hidden. |
1066
1067
  | `show` | Boolean | Yes | `true` `false` | n/a | Controls the visibility of the Modal. If `true`, the Modal is displayed; if `false`, it is hidden. |
1067
1068
  | `size` | String | No | `sm` `md` `lg` | `md` | Sets the size of the Modal. It's optional. |