feat(alert): add slot for customization

This commit is contained in:
Maria Hutt
2025-03-25 14:20:48 -07:00
parent 1cfa915e8f
commit 4c598d5a34
6 changed files with 41 additions and 9 deletions

View File

@ -1,7 +1,8 @@
import type { AnimationBuilder, LiteralUnion, Mode, TextFieldTypes } from '../../interface';
import type { AnimationBuilder, LiteralUnion, Mode, TextFieldTypes, ComponentRef } from '../../interface';
import type { IonicSafeString } from '../../utils/sanitization';
export interface AlertOptions {
export interface AlertOptions<T extends ComponentRef = ComponentRef> {
component?: T;
header?: string;
subHeader?: string;
message?: string | IonicSafeString;