feat(alert): add ability to use alert inline (#26316)

This commit is contained in:
Amanda Johnston
2022-11-18 13:32:27 -06:00
committed by GitHub
parent ef0d19c0f7
commit 08c0a5520a
13 changed files with 322 additions and 16 deletions

View File

@ -1,10 +1,9 @@
import { AlertOptions, alertController } from '@ionic/core/components';
import { JSX } from '@ionic/core/components';
import { defineCustomElement } from '@ionic/core/components/ion-alert.js';
import { createControllerComponent } from './createControllerComponent';
import { createInlineOverlayComponent } from './createInlineOverlayComponent';
export const IonAlert = /*@__PURE__*/ createControllerComponent<AlertOptions, HTMLIonAlertElement>(
export const IonAlert = /*@__PURE__*/ createInlineOverlayComponent<JSX.IonAlert, HTMLIonAlertElement>(
'ion-alert',
alertController,
defineCustomElement
);