Message

Introduction to using the Message notification component

Message 介紹示意圖

Message prompt information, usually used as a Notification, but Message is not limited to that purpose; notifications, error prompts, small reminders, etc. can all use Message to deliver information to users, and it also has distinctions in urgency levels.

circle-exclamation

Example

Attributes

Name
Value
Type
Default
Required
Note

prefix

emoji, text, Html(danger)

String

text or html (but dangerous)

theme

primary, success, warning, danger

String

primary

dangerHTML

Boolean

false

Use html tag

msg

String

duration

Number

200

Time displayed on screen

vOffset

Number

20

onClose

Function

null

Triggered after closing

Methods

Name

Msg( msg | options )

Msg.primary( msg | options )

Msg.success( msg | options )

Msg.warning( msg | options )

Msg.danger( msg | options )

Demo

Last updated

Was this helpful?