el-message

Display feedback notifications with success, info, warning, and error types.

21|2|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/jiaiyan/element-plus-skills --skill el-message
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: el-message
Source: https://github.com/jiaiyan/element-plus-skills/tree/main/components/el-message
Command: npx skills add https://github.com/jiaiyan/element-plus-skills --skill el-message

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provide a simple, reliable way to inform users about the outcome of their actions with consistent visual feedback.

Core Features & Use Cases

  • Types: supports success, warning, info, and error messages.
  • Closability & duration: messages can be closed manually or auto-dismiss after a configurable duration.
  • Placement & grouping: supports multiple placements and grouping similar messages.
  • Flexible content: supports HTML strings or VNode content; can include custom icons for enhanced cues.
  • Use Case: After form submission or data operations, show a brief notification to confirm results or indicate errors.

Quick Start

Call the ElMessage API with a text message and type to display a transient notification.

Frequently Asked Questions about el-message

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I show a toast notification in Vue after a form submission?

To show a toast notification in Vue after a form submission, call the ElMessage API with a text message and type. This displays a transient feedback notification to inform users about the outcome of their actions.

Can I display HTML or VNode content in an Element Plus message?

Yes, you can display HTML or VNode content in an Element Plus message. The message component supports flexible content options including HTML strings and VNode content, alongside custom icons for enhanced visual cues.

How do I configure duration and placement for UI feedback messages?

You can configure duration and placement for UI feedback messages through the API options. Messages can be set to auto-dismiss after a specific duration or be closed manually, and they support multiple placement positions on the screen.

What notification types are supported for contextual user feedback?

The supported notification types for contextual user feedback are success, info, warning, and error. These types help inform users about the outcome of data updates or form submissions with consistent visual cues.

Does the Vue message component group similar notifications together?

Yes, the Vue message component groups similar notifications together. This grouping feature prevents screen clutter when multiple feedback messages are triggered by rapid user actions.

What is the best way to inform users about data update outcomes in an app?

The best way to inform users about data update outcomes is displaying a brief feedback notification. This provides a simple, reliable way to confirm results or indicate errors with consistent visual feedback after data operations.