# El Badge

> Badge component for displaying numbers or status marks on buttons and icons. Invoke when user needs to show notification counts, status indicators, or attention markers.

- **Type:** Skill
- **Install:** `agentstack add skill-jiaiyan-element-plus-skills-el-badge`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [jiaiyan](https://agentstack.voostack.com/s/jiaiyan)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [jiaiyan](https://github.com/jiaiyan)
- **Source:** https://github.com/jiaiyan/element-plus-skills/tree/main/components/el-badge
- **Website:** https://skills.sh/jiaiyan/element-plus-skills/element-plus-skills

## Install

```sh
agentstack add skill-jiaiyan-element-plus-skills-el-badge
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Badge Component

Badge component displays a number or status mark on buttons and icons for notifications and status indicators.

## When to Use

- Notification counts
- Status indicators
- Unread message badges
- Attention markers

## Basic Usage

```vue

  
    comments
  
  
    replies
  

```

## Max Value

```vue

  
    comments
  

```

## Customizations

```vue

  
    comments
  
  
    replies
  

```

## Red Dot

```vue

  
    query
  
  
    
  

```

## Offset

```vue

  
    Offset badge
  

```

## API Reference

### Attributes

| Name | Description | Type | Default |
|------|-------------|------|---------|
| value | Display value | `string \| number` | `''` |
| max | Maximum value, shows `{max}+` when exceeded | `number` | `99` |
| is-dot | Display as a dot | `boolean` | `false` |
| hidden | Hidden badge | `boolean` | `false` |
| type | Badge type | `'primary' \| 'success' \| 'warning' \| 'danger' \| 'info'` | `'danger'` |
| show-zero | Show badge when value is zero | `boolean` | `true` |
| color | Background color of the dot | `string` | — |
| offset | Offset of badge | `[number, number]` | `[0, 0]` |
| badge-style | Custom style of badge | `CSSProperties` | — |
| badge-class | Custom class of badge | `string` | — |

### Slots

| Name | Description | Type |
|------|-------------|------|
| default | Customize default content | — |
| content | Customize badge content | `{ value: string }` |

## Common Patterns

### Notification Badge

```vue

  
    
  

import { ref } from 'vue'

const unreadCount = ref(5)

```

## Best Practices

1. Use `max` to prevent large numbers from overflowing
2. Use `is-dot` for simple status indicators
3. Set `hidden` when count is zero and `show-zero` is false

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [jiaiyan](https://github.com/jiaiyan)
- **Source:** [jiaiyan/element-plus-skills](https://github.com/jiaiyan/element-plus-skills)
- **License:** MIT
- **Homepage:** https://skills.sh/jiaiyan/element-plus-skills/element-plus-skills

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-jiaiyan-element-plus-skills-el-badge
- Seller: https://agentstack.voostack.com/s/jiaiyan
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
