ComponentsMessages

Message

Message component is used to display inline messages.

PREVIEW

An inline message for informational, success, warning, or error feedback.

basic-demo

The severity option specifies the type of the message.

severity-demo

The icon of a message is specified with the icon property or the icon template.

icon-demo

Configure the variant value as outlined or simple.

Outlined

Simple

variant-demo

Message provides small and large sizes as alternatives to the base.

sizes-demo

Multiple messages can be displayed using the standard v-for directive.

dynamic-demo

Enable closable option to display an icon to remove a message.

closable-demo

Messages can disappear automatically by defined the life in milliseconds.

life-demo

Validation errors in a form are displayed with the error severity.

forms-demo

Screen Reader

Message component uses alert role that implicitly defines aria-live as "assertive" and aria-atomic as "true". Since any attribute is passed to the root element, attributes like aria-labelledby and aria-label can optionally be used as well.

Close element is a button with an aria-label that refers to the aria.close property of the locale API by default, you may use closeButtonProps to customize the element and override the default aria-label.

Close Button Keyboard Support

KeyFunction
enterCloses the message.
spaceCloses the message.
Theme Designer