feat(alert, toast): pass arbitrary HTML attributes to host element (#23891)

resolves #23825
This commit is contained in:
William Martin
2021-09-14 22:44:57 -04:00
committed by GitHub
parent 1e13429731
commit 73a1daf0aa
13 changed files with 108 additions and 9 deletions

View File

@ -13,6 +13,7 @@ export interface AlertOptions {
backdropDismiss?: boolean;
translucent?: boolean;
animated?: boolean;
htmlAttributes?: AlertAttributes;
mode?: Mode;
keyboardClose?: boolean;
@ -22,6 +23,8 @@ export interface AlertOptions {
leaveAnimation?: AnimationBuilder;
}
export interface AlertAttributes extends JSXBase.HTMLAttributes<HTMLElement> {}
export interface AlertInput {
type?: TextFieldTypes | 'checkbox' | 'radio' | 'textarea';
name?: string;