el-badge

Display numeric counts or status markers on UI elements.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Badges provide a compact visual indicator for counts or status markers, enabling users to quickly perceive activity or priority without inspecting details.

Core Features & Use Cases

  • Display numeric counts on any clickable or interactive element (buttons, icons, avatars) to reflect notifications or activity.
  • Offer dot indicators for simple status signals via is-dot, with optional color and offset customization.
  • Support max, show-zero, hidden, and value to handle large numbers or zero states, with optional custom styling.
  • Flexible customization through color, badge-style, and badge-class properties to match design systems.

Quick Start

Wrap a target element with el-badge and provide a value to display a notification count.

Frequently Asked Questions about el-badge

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

FAQPage Schema
How do I display notification counts on interactive elements in Vue?

To display notification counts on interactive elements in Vue, wrap the target element with a badge component and set the value property to the numeric count you want to show.

What is the best way to show a status indicator without a number in Element Plus?

A status indicator without a number in Element Plus is created by enabling the is-dot property, which renders a simple dot marker with optional color and offset customization.

How do I handle large numbers or zero states on a Vue badge?

To handle large numbers or zero states on a Vue badge, use the max property to cap displayed values and toggle the show-zero property to control visibility when the count is zero.

Can I customize the badge styling to match my design system?

You can customize badge styling to match your design system by applying custom CSS through the color, badge-style, and badge-class properties, or by using the default and content slots.

When should I use a dot indicator instead of a numeric count?

Use a dot indicator instead of a numeric count when you need a simple status signal that conveys activity or priority without requiring the user to inspect specific numerical details.