n-layout

Compose Naive UI layout components for scalable page structures.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Layout components help you structure complex page layouts with headers, sidebars, and content areas, enabling consistent, scalable UI architectures across apps.

Core Features & Use Cases

  • Compose Layout, LayoutHeader, LayoutContent, LayoutFooter, and LayoutSider to build dashboards, admin panels, and multi-section pages.
  • Supports collapsible sider, various positioning modes, and left/right sider placement for flexible navigation.
  • Ideal for apps needing persistent chrome (header/footer) with scrollable content areas.

Quick Start

Instantiate a basic page layout by composing n-layout, n-layout-header, n-layout-content, and n-layout-footer to structure a typical page.

Frequently Asked Questions about n-layout

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

FAQPage Schema
How do I build a responsive admin dashboard layout with a persistent header and collapsible sider in Vue 3?

Build a responsive admin dashboard layout by composing n-layout, n-layout-header, n-layout-content, and n-layout-sider components in Vue 3. This approach supports a persistent header and a collapsible sider for scalable multi-region interfaces.

How does Naive UI handle sider placement and embedded options for multi-region interfaces?

Naive UI handles sider placement using props like has-sider, sider-placement, and embedded options within the n-layout component. These props enable flexible left or right navigation configurations for multi-region interfaces.

Can I use static or absolute positioning for scrollable content areas in a Naive UI layout?

Yes, you can use static or absolute positioning for scrollable content areas in a Naive UI layout. The n-layout component supports various positioning modes to maintain persistent chrome while allowing content to scroll independently.

What is the best way to structure a page layout with header, footer, and content areas using Naive UI?

The best way to structure a page layout is by instantiating n-layout, n-layout-header, n-layout-content, and n-layout-footer. This composition creates a typical page structure with persistent chrome and scrollable content sections.

Does building a complex Naive UI layout require prior knowledge of specific component props?

Yes, building complex Naive UI layouts requires knowledge of specific component props like has-sider, sider-placement, and embedded options. Understanding these props is necessary to properly compose scalable and responsive page architectures.