n-grid

Arrange responsive CSS Grid layouts with Grid and GridItem props in Naive UI.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The n-grid skill provides a CSS Grid-based system to simplify building responsive, multi-column layouts in Naive UI for Vue 3 applications.

Core Features & Use Cases

  • Responsive Grid: Create fluid column grids with configurable gaps and breakpoints.
  • GridItem Control: Control item span and offsets for flexible layouts.
  • Use Case: Design dashboards, form grids, and content-heavy pages with predictable alignment across devices.

Quick Start

Define a 4-column responsive grid with 12px gaps and place content in grid items to build a dashboard.

Frequently Asked Questions about n-grid

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

FAQPage Schema
How do I create responsive grid layouts in Vue 3 using Naive UI?

You create responsive grid layouts by using a CSS Grid-based system within Naive UI, configuring props like cols, x-gap, and y-gap to build fluid columns and predictable alignment across devices.

What is the best way to build a responsive dashboard with Vue 3 and Naive UI?

The best way to build a responsive dashboard with Vue 3 and Naive UI is using a CSS Grid-based layout system, allowing you to define multi-column content and grid item spans for complex configurations.

Can I control item span and offsets in a Naive UI CSS grid?

Yes, you can control item span and offsets in a Naive UI CSS grid by using GridItem props such as offset, span, and suffix to achieve flexible layouts within your Vue 3 application.

Does the Naive UI grid system support SSR and responsive breakpoints?

Yes, the Naive UI grid system supports responsive behavior through configurable breakpoints and includes specific Server-Side Rendering (SSR) considerations for Vue 3 applications.

How do I configure collapsed rows and gaps in a Naive UI grid layout?

You configure collapsed rows and gaps in a Naive UI grid layout by applying specific props like collapsed, x-gap, and y-gap to manage spacing and responsive behavior across your grid items.

When should I use a CSS Grid layout over other methods in Naive UI?

You should use a CSS Grid layout in Naive UI when designing responsive dashboards, form grids, and content-heavy pages that require predictable multi-column alignment and flexible item spans across devices.