west Home
light_mode
MumpUI / Component / Message
Success, Info, Warn & Error message
copy
code  Show code
Loading message
copy
code  Show code
Clear particular message for custom sequence
copy
code  Show code
This component does not work if MumpUI is not initialized at the top of the project.
MumpUI Setup →
Message.success function arguments
NameTypeUsage
textstringMessage text
durationnumberDuration in milliseconds
Same as above forMessage.info | Message.warn | Message.error
Message.clear function arguments
NameTypeUsage
messagesymbolClear selected message if message argument provided else clear all messages
Update default duration & max messages count
copy
// Default duration: 3000ms
// Default max count: 3
<MumpUI message={{ duration: 2000, max: 1 }} />