You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1c4d8ec
Browse filesBrowse the repository at this point in the historyBrowse files
...args: ModalPresentArgs<C>, // props inferred from input() fields; options?: KitModalPresentOptions
155
+
): Promise<ModalReturnOf<C>|undefined>
156
+
// Props inferred from the component's input() fields (required/optional).
157
+
// Return type inferred from `declare static modalReturn: T` on the component (void if absent).
157
158
158
159
presentPopover<O>(
159
160
component: PopoverOptions['component'],
@@ -182,9 +183,14 @@ alertConfirm(options: {
182
183
**Best practice — the modal launcher pattern.** Never call `modalController.create(...)` inline in a component. Instead, each modal/popover page exports a typed launcher next to itself and every call site goes through `KitOverlayController`:
This centralizes presentation options, keeps component props and dismiss data type-safe, and makes every modal discoverable. A well-disciplined app has **zero** inline `controller.create()` calls.
0 commit comments