# El Mention

> Mention component for mentioning users or items in input. Invoke when user needs to implement @mentions, user tagging, or item references in text inputs.

- **Type:** Skill
- **Install:** `agentstack add skill-jiaiyan-element-plus-skills-el-mention`
- **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-mention
- **Website:** https://skills.sh/jiaiyan/element-plus-skills/element-plus-skills

## Install

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

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

## About

# Mention Component

Mention allows users to mention someone or something in an input field.

## When to Use

- User mentions (@username)
- Item references
- Tagging functionality
- Rich text inputs

## Basic Usage

```vue

  

import { ref } from 'vue'

const value = ref('')
const options = [
  { value: 'user1', label: 'User 1' },
  { value: 'user2', label: 'User 2' },
  { value: 'user3', label: 'User 3' }
]

```

## Textarea Mode

```vue

  

```

## Custom Props

```vue

  

import { ref } from 'vue'

const value = ref('')
const options = [
  { id: '1', name: 'User 1' },
  { id: '2', name: 'User 2' }
]

```

## Custom Label

```vue

  
    
      
        
        {{ item.label }}
      
    
  

```

## Remote Loading

```vue

  

import { ref } from 'vue'

const value = ref('')
const options = ref([])
const loading = ref(false)

const handleSearch = async (pattern, prefix) => {
  loading.value = true
  const res = await fetch(`/api/users?q=${pattern}`)
  options.value = await res.json()
  loading.value = false
}

```

## Custom Trigger

```vue

  

```

## Delete as Whole

```vue

  

```

## API Reference

### Attributes

| Name | Description | Type | Default |
|------|-------------|------|---------|
| model-value / v-model | Input value | `string` | — |
| options | Mention options | `MentionOption[]` | `[]` |
| props | Configuration options | `MentionOptionProps` | `{value: 'value', label: 'label', disabled: 'disabled'}` |
| prefix | Trigger character | `string \| string[]` | `'@'` |
| split | Split character | `string` | `' '` |
| filter-option | Custom filter logic | `(pattern, option) => boolean` | — |
| placement | Popup placement | `'bottom' \| 'top'` | `'bottom'` |
| show-arrow | Show dropdown arrow | `boolean` | `false` |
| offset | Dropdown offset | `number` | `0` |
| whole | Delete mention as whole | `boolean` | `false` |
| check-is-whole | Custom whole check | `(pattern, prefix) => boolean` | — |
| loading | Loading state | `boolean` | `false` |
| popper-class | Custom dropdown class | `string \| object` | `''` |
| popper-style | Custom dropdown style | `string \| object` | — |

### Events

| Name | Description | Type |
|------|-------------|------|
| search | Triggered on prefix hit | `(pattern, prefix) => void` |
| select | Option selected | `(option, prefix) => void` |
| whole-remove | Whole mention removed | `(pattern, prefix) => void` |

### Slots

| Name | Description | Type |
|------|-------------|------|
| label | Custom option label | `{ item, index }` |
| loading | Loading content | — |
| header | Dropdown header | — |
| footer | Dropdown footer | — |

### Exposes

| Name | Description | Type |
|------|-------------|------|
| input | Input component instance | `Ref` |
| tooltip | Tooltip component instance | `Ref` |
| dropdownVisible | Dropdown visibility | `ComputedRef` |

## Best Practices

1. Use `loading` for async option loading
2. Use `prefix` for different trigger characters
3. Use `whole` for better UX when deleting mentions

## 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-mention
- 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%.
