mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-15 17:42:15 +08:00
feat(alert): add ability to use alert inline (#26316)
This commit is contained in:
@ -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
|
||||
);
|
||||
|
Reference in New Issue
Block a user