# El Anchor

> Anchor component for anchor navigation. Invoke when user needs to create page anchor navigation, table of contents, or quick navigation to specific sections.

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

## Install

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

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

## About

# Anchor Component

Anchor provides quick navigation to specific sections on the current page.

## When to Use

- Page table of contents
- Document navigation
- Section anchors
- Quick page navigation

## Basic Usage

```vue

  
    
    
    
  

```

## Horizontal Mode

```vue

  
    
    
  

```

## Scroll Container

```vue

  
    
  

import { ref } from 'vue'

const containerRef = ref(null)

```

## Underline Type

```vue

  
    
  

```

## API Reference

### Anchor Attributes

| Name | Description | Type | Default |
|------|-------------|------|---------|
| container | Scroll container | `string \| HTMLElement \| Window` | — |
| offset | Scroll offset | `number` | `0` |
| bound | Offset for triggering anchor | `number` | `15` |
| duration | Scroll duration (ms) | `number` | `300` |
| marker | Show marker | `boolean` | `true` |
| type | Anchor type | `'default' \| 'underline'` | `'default'` |
| direction | Anchor direction | `'vertical' \| 'horizontal'` | `'vertical'` |

### Anchor Events

| Name | Description | Type |
|------|-------------|------|
| change | Active link changes | `(href: string) => void` |
| click | Link clicked | `(e: MouseEvent, href?: string) => void` |

### Anchor Exposes

| Name | Description | Type |
|------|-------------|------|
| scrollTo | Scroll to specific position | `(href: string) => void` |

### AnchorLink Attributes

| Name | Description | Type | Default |
|------|-------------|------|---------|
| title | Link text | `string` | — |
| href | Link address | `string` | — |

### AnchorLink Slots

| Name | Description |
|------|-------------|
| default | Child links |
| sub-link | Child links |

## Best Practices

1. Use `container` for custom scroll areas
2. Use `offset` for fixed headers
3. Use `direction="horizontal"` for top navigation

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