Ready-to-use templates for generating documentation pages.
CRITICAL: All Nuxt UI components must use the u- prefix in MDC syntax.
::u-page-heronot::page-hero:::u-buttonnot:::button::::u-page-cardnot::::page-card
---
seo:
title: [Project Name] Documentation
description: [Project description]
---
::u-page-hero
#title
[Project Name]
#description
[Short description - what problem does it solve?]
#links
:::u-button
---
color: neutral
size: xl
to: /getting-started/introduction
trailing-icon: i-lucide-arrow-right
---
Get Started
:::
:::u-button
---
color: neutral
icon: i-simple-icons-github
size: xl
to: [GitHub URL]
target: _blank
variant: outline
---
View on GitHub
:::
::
::u-page-section
#title
What you can do
#features
:::u-page-feature
---
icon: [icon]
to: /guide/[topic]
---
#title
[Action verb] [thing]
#description
[One sentence describing the capability]
:::
::Use u-page-grid + u-page-card for rich feature showcases:
::u-page-hero
#title
[Project Name]
#description
[Description]
#headline
:::u-button
---
size: sm
to: [changelog-url]
variant: outline
---
v1.0.0 Released →
:::
#links
:::u-button
---
color: neutral
size: xl
to: /getting-started
trailing-icon: i-lucide-arrow-right
---
Get Started
:::
::
::u-page-section
:::u-page-grid
::::u-page-card
---
spotlight: true
class: col-span-2 lg:col-span-1
to: /guide/feature-1
---
#title
Feature One
#description
Description of this feature and what it enables.
::::
::::u-page-card
---
spotlight: true
class: col-span-2
---
:::::u-color-mode-image
---
alt: Feature screenshot
class: w-full rounded-lg
dark: /images/feature-dark.png
light: /images/feature-light.png
---
:::::
#title
Feature with Image
#description
Show off your feature with dark/light mode images.
::::
:::
::::::u-page-card
---
spotlight: true
class: col-span-2 md:col-span-1
---
:::::div{.bg-elevated.rounded-lg.p-3.overflow-x-auto}
```ts [config.ts]
export default {
option: 'value'
}:::::
#title Easy Configuration
#description Configure with simple options. ::::
### Card with Custom Component
Create custom components in `app/components/content/` for interactive demos:
```markdown
::::u-page-card
---
spotlight: true
class: col-span-2
---
:my-custom-demo
#title
Interactive Demo
#description
Custom Vue component embedded in card.
::::
| Class | Usage |
|---|---|
col-span-2 |
Full width (2 columns) |
col-span-2 lg:col-span-1 |
Full on mobile, half on desktop |
col-span-2 md:col-span-1 |
Full on mobile, half on tablet+ |
min-h-[450px] |
Minimum height for tall cards |
Pick and choose based on project needs:
| Pattern | When to Use |
|---|---|
| Code preview in card | Libraries, APIs, CLIs |
| Feature grid with icons | Projects with multiple features |
| CTA section | Drive users to action |
| Before/after code | Projects solving a pain point |
See mdc-components.md for component syntax. See https://ui.nuxt.com/llms.txt for full component reference.
---
title: Introduction
description: Learn what [Project Name] is and when to use it
navigation:
icon: i-lucide-house
---
[Project Name] helps you [main value proposition].
## What is [Project Name]?
[2-3 sentences explaining the project]
## What you can do
- **[Action 1]** - [Brief description]
- **[Action 2]** - [Brief description]
- **[Action 3]** - [Brief description]
## When to use [Project Name]
Use [Project Name] when you need to:
- [Use case 1]
- [Use case 2]
- [Use case 3]Use the detected package manager and show all options:
---
title: Installation
description: How to install [Project Name]
navigation:
icon: i-lucide-download
---
## Prerequisites
[List prerequisites if any]
## How to install
::code-group
```bash [pnpm]
pnpm add [package-name]npm install [package-name]yarn add [package-name]bun add [package-name]::
[Verification steps]
---
## Guide Page
Use action verbs in H2/H3 headings:
```markdown
---
title: [Topic]
description: [Action verb] [thing] in your [Project Name] app
navigation:
icon: [icon]
---
[One sentence overview]
## Add basic [feature]
[Explanation]
```[language] [[file-path]]
[code]
[Explanation]
[code]
[Explanation]
- [Link to related guide]
- [Link to advanced topic]
**Action verbs for H2 headings:** Add, Configure, Create, Set up, Enable, Connect, Handle, Customize, Deploy, Use
---
## Navigation YAML
Each section folder needs a `.navigation.yml`:
```yaml
title: [Section Title]
icon: [icon-name]
| Section | Icon |
|---|---|
| Getting Started | i-lucide-rocket |
| Guide | i-lucide-book-open |
| Recipes | i-lucide-chef-hat |
| API | i-lucide-code |
| Examples | i-lucide-lightbulb |
| Configuration | i-lucide-settings |
| Advanced | i-lucide-sparkles |