n-list

Map Naive UI List components to structured rendering with headers, footers, dividers, and item slots.

8|3|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/jiaiyan/naive-ui-skills --skill n-list
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: n-list
Source: https://github.com/jiaiyan/naive-ui-skills/tree/main/components/n-list
Command: npx skills add https://github.com/jiaiyan/naive-ui-skills --skill n-list

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

List component provides a consistent way to display structured lists with optional header, footer, borders, dividers, and item slots, reducing UI drift and boilerplate.

Core Features & Use Cases

  • Header & footer support for contextual sections.
  • Bordered style and divider control for visual hierarchy.
  • Prefix/suffix slots and rich content with n-thing for flexible item content.
  • Use cases: chat-like item lists, settings menus, notification feeds, and data lists.

Quick Start

Create a sample list in a Vue template using n-list and n-list-item to render a header, several items, and a footer.

Frequently Asked Questions about n-list

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a structured list with headers and dividers in Vue using Naive UI?

To create a structured list in Naive UI, use the list component to map items into a rendered layout with headers, footers, dividers, and prefix or suffix slots. This approach reduces UI drift and boilerplate when building content lists or menu-like sections.

Can I add a header and footer to a Naive UI list component in Vue?

Yes, you can add a header and footer to a Naive UI list component. The list supports header and footer slots to define contextual sections, enabling structured rendering for notification feeds, settings menus, and chat-like item lists.

Does the Naive UI list component support bordered styles and hoverable items?

The Naive UI list component satisfies functional requirements for bordered and hoverable lists. It provides bordered style and divider control to establish visual hierarchy within your Vue application's structured content.

How do I use prefix and suffix slots for custom content in a Naive UI list?

You can use prefix and suffix slots in a Naive UI list to enable slot-based customization. These slots allow flexible item content rendering alongside rich content integration, defining the layout for interactive list items.

What is the best way to build a notification feed layout with Naive UI in Vue?

The best way to build a notification feed layout is using the Naive UI list component, which provides structured rendering with headers, dividers, and item slots. This reduces boilerplate when mapping content to consistent list structures.

Are there limitations when using n-list-item for complex content structures in Naive UI?

The list component maps structured rendering via item slots and rich content with n-thing for flexible item content. However, complex layouts rely solely on header, footer, prefix, and suffix slots, limiting deeply nested structural customization beyond these defined boundaries.