El divider

From jiaiyan/element-plus-skills · View interactive version

El divider is an AI agent skill from the GitHub repository jiaiyan/element-plus-skills. Divider component for separating content. Invoke when user needs to create visual separation between content sections, add horizontal or vertical dividers.

How to use this skill

Skill file

Divider Component

Divider component creates a dividing line that separates content.

When to Use

Basic Usage

<template>
  <div>
    <p>Content above</p>
    <el-divider />
    <p>Content below</p>
  </div>
</template>

Custom Content

<template>
  <el-divider content-position="left">Left</el-divider>
  <el-divider content-position="center">Center</el-divider>
  <el-divider content-position="right">Right</el-divider>
</template>

Dashed Line

<template>
  <el-divider border-style="dashed" />
</template>

Vertical Divider

<template>
  <div style="display: flex; align-items: center;">
    <span>Left</span>
    <el-divider direction="vertical" />
    <span>Right</span>
  </div>
</template>

API Reference

Attributes

| Name | Description | Type | Default |

|------|-------------|------|---------|

| direction | Divider direction | 'horizontal' \| 'vertical' | 'horizontal' |

| border-style | Style of divider | CSS border-style | 'solid' |

| content-position | Position of content | 'left' \| 'right' \| 'center' | 'center' |

Slots

| Name | Description |

|------|-------------|

| default | Customized content on divider |

Best Practices

  1. Use direction="vertical" for inline separators
  2. Use border-style="dashed" for subtle dividers
  3. Position content with content-position
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.