Implement new toast UI (#10467)
* Implement new toast UI * Use PCSS vars and Caption component * Add GenericToast-test * Tweak call toast * Fix code style
This commit is contained in:
parent
e350b4c2c2
commit
7632f36624
14 changed files with 206 additions and 66 deletions
|
@ -15,7 +15,7 @@ limitations under the License.
|
|||
*/
|
||||
|
||||
import EventEmitter from "events";
|
||||
import React from "react";
|
||||
import React, { ReactElement } from "react";
|
||||
|
||||
import { ComponentClass } from "../@types/common";
|
||||
|
||||
|
@ -24,7 +24,14 @@ export interface IToast<C extends ComponentClass> {
|
|||
// higher priority number will be shown on top of lower priority
|
||||
priority: number;
|
||||
title?: string;
|
||||
/**
|
||||
* Icon class.
|
||||
*
|
||||
* @deprecated Use iconElement instead.
|
||||
*/
|
||||
icon?: string;
|
||||
/** Icon element. Displayed left of the title. */
|
||||
iconElement?: ReactElement;
|
||||
component: C;
|
||||
className?: string;
|
||||
bodyClassName?: string;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue