Success, Info, Warn & Error message
Loading message
Clear particular message for custom sequence
This component does not work if
MumpUI is not initialized at the top of the project.
MumpUI Setup →
Message.success
function arguments
Name | Type | Usage |
---|
text | string | Message text |
duration | number | Duration in milliseconds |
Same as above forMessage.info
| Message.warn
| Message.error
Message.clear
function arguments
Name | Type | Usage |
---|
message | symbol | Clear selected message if message argument provided else clear all messages |
Update default duration & max messages count
<MumpUI message={{ duration: 2000, max: 1 }} />
MumpUI Setup →