Added icon prop
parent
7a1a4a05d9
commit
2f9cee459b
|
@ -22,6 +22,12 @@ const MessageProps = [
|
|||
type: "number",
|
||||
default: "300",
|
||||
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;
|
||||
sticky?: boolean;
|
||||
life?: number;
|
||||
icon?: string;
|
||||
}
|
||||
|
||||
declare class Message {
|
||||
|
|
Loading…
Reference in New Issue