Added icon prop
parent
7a1a4a05d9
commit
2f9cee459b
|
@ -22,6 +22,12 @@ const MessageProps = [
|
||||||
type: "number",
|
type: "number",
|
||||||
default: "300",
|
default: "300",
|
||||||
description: "Delay in milliseconds to close the message automatically."
|
description: "Delay in milliseconds to close the message automatically."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "icon",
|
||||||
|
type: "string",
|
||||||
|
default: "null",
|
||||||
|
description: "Display a custom icon for the message."
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,7 @@ interface MessageProps {
|
||||||
closable?: boolean;
|
closable?: boolean;
|
||||||
sticky?: boolean;
|
sticky?: boolean;
|
||||||
life?: number;
|
life?: number;
|
||||||
|
icon?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
declare class Message {
|
declare class Message {
|
||||||
|
|
Loading…
Reference in New Issue