diff --git a/components/doc/messages/index.js b/components/doc/messages/index.js index 945c4ecba2..d6fcdc1545 100644 --- a/components/doc/messages/index.js +++ b/components/doc/messages/index.js @@ -476,6 +476,12 @@ messages.current.show({severity: 'success', summary: 'Success Message', detail: + + id + string + null + Unique id of the message. + severity string @@ -518,6 +524,12 @@ messages.current.show({severity: 'success', summary: 'Success Message', detail: 3000 Delay in milliseconds to close the message automatically. + + icon + IconType + Defaults to severiy icon + Defines the icon to display. + diff --git a/components/lib/messages/messages.d.ts b/components/lib/messages/messages.d.ts index 97d48f4bd1..51202f239a 100644 --- a/components/lib/messages/messages.d.ts +++ b/components/lib/messages/messages.d.ts @@ -9,6 +9,7 @@ type MessagesMessageType = MessagesMessage | MessagesMessage[]; export interface MessagesMessage { id?: string; severity?: MessagesSeverityType; + content?: React.ReactNode; summary?: React.ReactNode; detail?: React.ReactNode; closable?: boolean;