Content Components
Besides the Nuxt UI prose components in MDC Components, the layer's components/content/ directory provides the components below for use in Markdown. HighlightInlineType and HeaderToggleButton in the same directory are used internally by props tables and the header and are not meant for content.
Motion
Motion wraps the Motion component from motion-v to give its content an entrance animation. By default the content fades in from a blurred, slightly enlarged state:
::motion
**Movk Nuxt Docs**: an editorial docs theme for Nuxt projects.
::
| Prop | Default |
|---|---|
initial | { scale: 1.1, opacity: 0, filter: 'blur(20px)' } |
animate | { scale: 1, opacity: 1, filter: 'blur(0px)' } |
transition | { duration: 0.6, delay: 0.1 } |
Other motion-v Motion props and HTML attributes such as class are passed through. To reveal elements one after another, increase transition.delay:
::motion
**Build modern docs**
::
::motion
---
transition: { duration: 0.6, delay: 0.3 }
---
A docs theme built on Nuxt 4.
::
::motion{class="flex gap-3"}
---
transition: { duration: 0.6, delay: 0.5 }
---
:::u-button{to="/en/docs/getting-started"}
Get started
:::
::
StarsBg
StarsBg draws three layers of slowly rising stars behind its section, for the hero or closing section of a landing page. It is absolutely positioned inside its parent, so the parent needs relative, and isolate to create a stacking context:
::div{class="relative isolate h-48 overflow-hidden"}
:stars-bg
::
| Prop | Type | Default | Description |
|---|---|---|---|
starCount | number | 300 | Total number of stars across the three layers |
color | string | 'var(--ui-primary)' | Star color, any CSS color |
size | { min: number, max: number } | { min: 1, max: 2 } | Star size range in px |
:stars-bg{:star-count="120" color="var(--ui-text-muted)"}
Landing page components
The layer ships a set of editorial landing page components. This site's home page and the home pages of all three official templates are built from them. They usually live in content/index.md, and each one renders a full-width section:
| Component | Purpose | Props | Slots |
|---|---|---|---|
LandingCover | Cover: mono kicker, double rule, display title, lead and side content | kicker, aside | title, description, links, default |
LandingIndex | Numbered contents list generated from the top-level docs sections | label | — |
LandingSection | Numbered section: title and lead on the left, feature grid on the right | index, kicker | title, description, links, aside, default |
LandingFeature | One cell of the feature grid, numbered automatically in order | — | title, description |
LandingFigure | Captioned figure with optional separate light and dark images | src, dark, alt, caption, label | — |
LandingClosing | Closing headline and buttons | — | title, links |
::landing-cover{kicker="Docs" aside="MIT"}
#title
My Docs
#description
One sentence about your project.
#links
:::u-button{to="/docs/getting-started" trailing-icon="i-lucide-arrow-right"}
Get started
:::
#default
:landing-index{label="Contents"}
::
::landing-section{index="01" kicker="Features"}
#title
Highlights
#description
Two or three sentences about this group of features.
#default
:::landing-feature
#title
Feature one
#description
What it does.
:::
::
::landing-closing
#title
Start with one Markdown file
#links
:::u-button{to="/docs/getting-started"}
Get started
:::
::
runtimeConfig.public.version in nuxt.config.ts and LandingCover shows it before the kicker, for example read from package.json: version: pkg.version.Mermaid Diagrams
With `movkNuxtDocs.mermaid` enabled and mermaid and dompurify installed, code blocks in the `mermaid` language render as flowcharts, sequence diagrams, class diagrams and more. Diagrams follow the color mode, load when scrolled into view and support copy and fullscreen.
ComponentProps
Generate a props table for a Vue component with a single `:component-props` line. Names, defaults, types and JSDoc descriptions come from nuxt-component-meta, so the docs stay in sync with the component.