Refactor #3832 Refactor #3833 - For Toast

This commit is contained in:
Tuğçe Küçükoğlu 2023-04-14 15:03:58 +03:00
parent f9f39cb8fc
commit a86f8faa39
3 changed files with 81 additions and 34 deletions

View file

@ -18,7 +18,7 @@ export interface ToastMessageOptions {
* Severity level of the message.
* @defaultValue info
*/
severity?: 'success' | 'info' | 'warn' | 'error' | string | undefined;
severity?: 'success' | 'info' | 'warn' | 'error' | undefined;
/**
* Summary content of the message.
*/
@ -98,9 +98,21 @@ export interface ToastProps {
*/
closeIcon?: string | undefined;
/**
* Icon to display in the toast.
* Icon to display in the toast with info severity.
*/
icon?: string | undefined;
infoIcon?: string | undefined;
/**
* Icon to display in the toast with warn severity.
*/
warnIcon?: string | undefined;
/**
* Icon to display in the toast with error severity.
*/
errorIcon?: string | undefined;
/**
* Icon to display in the toast with success severity.
*/
successIcon?: string | undefined;
/**
* Uses to pass all properties of the HTMLButtonElement to the close button.
*/