一键导入
n-divider
Divider component for separating content sections. Invoke when user needs to implement horizontal or vertical dividers with optional titles in Naive UI.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Divider component for separating content sections. Invoke when user needs to implement horizontal or vertical dividers with optional titles in Naive UI.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Naive UI Skills Library - A comprehensive skill library for AI agents to understand and utilize Naive UI components. Invoke when user needs to work with Naive UI components, theming, i18n, dark mode, or design specifications.
Affix component that makes content stick to fixed places when scrolling. Invoke when user needs to implement sticky positioning or fixed elements in Naive UI.
Alert component for displaying important messages and notifications. Invoke when user needs to show contextual feedback messages with different types and styles in Naive UI.
Anchor component for navigation and table of contents. Invoke when user needs to implement anchor navigation, table of contents, or scroll-based navigation highlighting in Naive UI.
An autocomplete input component that provides search hints and suggestions as users type, with support for grouping, custom rendering, and various input configurations
Avatar component for displaying user profile images, icons, or text. Invoke when user needs to implement user avatars, avatar groups, or customize avatar appearance in Naive UI.
| name | n-divider |
| description | Divider component for separating content sections. Invoke when user needs to implement horizontal or vertical dividers with optional titles in Naive UI. |
| metadata | {"author":"jiaiyan","version":"1.0.0"} |
Divider component for visually separating content sections with horizontal or vertical lines.
Use this component when:
Invoke this skill when:
| Name | Type | Default | Description |
|---|---|---|---|
| dashed | boolean | false | Whether to show dashed line. |
| title-placement | 'left' | 'right' | 'center' | 'center' | Title placement. |
| vertical | boolean | false | Whether to show vertical direction. |
| Name | Parameters | Description |
|---|---|---|
| default | () | The title of divider. |
<template>
<div>
<p>First section content</p>
<n-divider />
<p>Second section content</p>
</div>
</template>
<template>
<div>
<p>First section content</p>
<n-divider>Title Center</n-divider>
<p>Second section content</p>
</div>
</template>
<template>
<div>
<p>Content above</p>
<n-divider title-placement="left">Left Title</n-divider>
<p>Content in between</p>
<n-divider title-placement="right">Right Title</n-divider>
<p>Content below</p>
</div>
</template>
<template>
<div>
<p>Content above</p>
<n-divider dashed>Dashed Line</n-divider>
<p>Content below</p>
</div>
</template>
<template>
<div>
Text
<n-divider vertical />
Link
<n-divider vertical />
Button
</div>
</template>
<template>
<n-card title="Card Title">
<div>First section</div>
<n-divider />
<div>Second section</div>
<n-divider />
<div>Third section</div>
</n-card>
</template>
<template>
<n-form>
<n-form-item label="Name">
<n-input />
</n-form-item>
<n-form-item label="Email">
<n-input />
</n-form-item>
<n-divider>Address Information</n-divider>
<n-form-item label="Street">
<n-input />
</n-form-item>
<n-form-item label="City">
<n-input />
</n-form-item>
</n-form>
</template>
<template>
<n-space align="center">
<n-button text>Home</n-button>
<n-divider vertical />
<n-button text>Products</n-button>
<n-divider vertical />
<n-button text>About</n-button>
<n-divider vertical />
<n-button text>Contact</n-button>
</n-space>
</template>
<template>
<n-divider>
<n-icon :component="StarIcon" />
</n-divider>
</template>
<template>
<n-space align="center">
<n-text depth="3">Step 1</n-text>
<n-divider vertical />
<n-text depth="3">Step 2</n-text>
<n-divider vertical />
<n-text type="primary">Step 3</n-text>
</n-space>
</template>
<template>
<n-divider dashed title-placement="left">
Optional Section
</n-divider>
</template>
Use for logical separation: Dividers should separate logically distinct content
<div>Personal Info</div>
<n-divider />
<div>Professional Info</div>
Vertical for inline elements: Use vertical dividers for inline content
<span>Item 1</span>
<n-divider vertical />
<span>Item 2</span>
Title placement: Use title placement to match visual hierarchy
<n-divider title-placement="left">Section Title</n-divider>
Dashed for optional sections: Use dashed style to indicate optional content
<n-divider dashed>Optional</n-divider>
Avoid overuse: Don't use dividers excessively; whitespace can be sufficient
Combine with spacing: Add appropriate spacing around dividers
<n-space vertical size="large">
<div>Content</div>
<n-divider />
<div>Content</div>
</n-space>