Skill Store 33

El Divider

Divider component for separating content.

by jiaiyan · MIT

The skill

Divider component for separating content. Invoke when user needs to create visual separation between content sections, add horizontal or vertical dividers.

Divider Component

Divider component creates a dividing line that separates content.

When to Use

  • Content separation
  • Section dividers
  • Visual grouping
  • Layout organization

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

Connect your agent to the Skill Store MCP server and ask for it by ref: jiaiyan/el-divider-71536810990.

Download SKILL.md · Markdown version

Details

Publisher
jiaiyan
Category
Software Development › Frontend & UI
License
MIT
Updated
2026-03-13

References

More from jiaiyan