n-page-header

Render reusable page header UI with title, subtitle, and action slots for Naive UI pages.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Page header components provide a consistent, reusable header area for pages, combining a title, subtitle, navigation, and slots for extra content to streamline page composition.

Core Features & Use Cases

  • Back Navigation: built-in back button with callback
  • Flexible Slots: avatar, header, title, subtitle, extra, and footer slots for rich content
  • Subtitle Support: display subtitle text or slot
  • Footer Content: add footer content such as tabs or filters
  • Use Case: drop into dashboards or detail pages to present page context and actions

Quick Start

Create an n-page-header with a title and subtitle and optionally slot extra content.

Frequently Asked Questions about n-page-header

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

FAQPage Schema
How do I create a consistent Vue page header with back navigation and title?

A Vue page header with back navigation and title is created using a reusable component that provides a title prop, a back callback, and slots for subtitle and extra content to establish page context. It organizes consistent header UI for dashboards and detail pages.

Can I use naive-ui page header slots to add avatars and footer content?

Naive UI page header slots support adding avatars and footer content by exposing avatar, header, title, subtitle, extra, and footer slots. You can insert rich content like tabs or filters into the footer slot to enhance the page header composition.

Does the Vue page header component support custom back button callbacks?

The Vue page header component supports custom back button callbacks through a dedicated prop. You can pass a callback function to handle the back navigation event programmatically within your Naive UI application.

What is the best way to standardize page context across Vue dashboards and detail pages?

Standardizing page context across Vue dashboards and detail pages is achieved by dropping a reusable page header component into each page. It combines title, subtitle, and flexible action slots to present consistent page context and actions without repeating header markup.

Are there limitations on what I can put in a naive-ui page header extra slot?

There are no strict limitations on the naive-ui page header extra slot because it is designed for flexible content. You can insert action buttons, badges, or any custom Vue components into the extra slot to display contextual actions alongside the title and subtitle.

Do I need to manually build navigation breadcrumbs if I use a Vue page header component?

You do not need to manually build navigation breadcrumbs if you use a Vue page header component because it provides built-in back navigation. However, for complex breadcrumb trails, you can utilize the header or footer slots to insert additional navigation components as needed.