Page Block Components
API reference for MDC page-building and structural components provided by @nuxtify/cms.
Overview
- Provided by:
@nuxtify/cms - Source directory:
src/runtime/components/page/
These components power both Markdown MDC landing pages and built-in CMS page templates. Every component can be used directly inside .md files (with ::ComponentName syntax) or Vue SFCs. See Authoring & Page Blocks for composition patterns.
Shared PageLink Type
Several components accept PageLink objects for action buttons or card links (src/types/link.ts):
export interface PageLink {
text?: string
to?: string
href?: string
color?: string
variant?: VBtn['$props']['variant']
rounded?: VBtn['$props']['rounded']
prependIcon?: string
appendIcon?: string
size?: VBtn['$props']['size']
target?: '_blank' | '_self' | '_parent' | '_top'
rel?: string
}
Landing & Marketing Blocks
PageHero
Full-height (70vh) centered hero section with overline, heading, description, action buttons, and caption.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
overline | string | undefined | Eyebrow text above the main title. |
title | string | undefined | Hero headline. |
titleTag | 'h1' | 'h2' | 'h1' | Heading element used for the title. |
description | string | undefined | Supporting lead copy. |
caption | string | undefined | Small muted note rendered below the action buttons. |
links | PageLink[] | undefined | Action buttons rendered as <v-btn>. |
align | 'left' | 'center' | 'right' | 'center' | Horizontal text and button alignment via useAlignment. |
Slots
overline, title, description, actions, caption, and default. Named text slots use mdc-unwrap="p" for clean Markdown slot syntax.
::PageHero
---
overline: Nuxtify
title: Ship weirdly fast.
description: Modular Nuxt and Vuetify building blocks.
links:
- text: Get Started
to: /docs
appendIcon: mdi-arrow-right
---
::
PageSection
Padded vertical section (py-4 py-md-16) with an optional overline, <h2> title, description, and default slot for grids, cards, or prose.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
overline | string | undefined | Eyebrow text above the section heading. |
title | string | undefined | Section <h2> heading. |
description | string | undefined | Supporting subtitle below the heading. |
align | 'left' | 'center' | 'right' | 'center' | Text and row alignment. |
hidden | boolean | false | When true, skips rendering the section entirely. |
Slots
overline, title, description, and default.
PageGrid
Thin <v-row> wrapper with zero top/bottom margin, designed to hold PageCard or <v-col> items inside a PageSection. Accepts a default slot and no props.
PageCard
Responsive grid column (cols="12" sm="6" md="4") wrapping a full-height <v-card>. Renders description as Markdown via <MDC> so inline links and emphasis work cleanly inside frontmatter or YAML props.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
title | string | undefined | Card <h3> title. |
description | string | undefined | Card subtitle (parsed as Markdown via <MDC>). |
link | PageLink | undefined | Makes the card clickable (to/href) and optionally renders prependIcon or appendIcon. |
variant | VCard['variant'] | 'outlined' | Vuetify card variant. |
color | string | undefined | Optional Vuetify card color. |
Slots
prepend, title, description, text, actions, and append.
PageCardSimple
Rounded clickable <v-card> with a title, Markdown-enabled description (<MDC>), and a bottom-aligned "Learn more" link button. Unlike PageCard, it does not wrap itself in a <v-col>.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
to | string | Required | Internal route target. |
title | string | '' | Card heading. |
description | string | '' | Supporting copy (parsed as Markdown via <MDC>). |
buttonText | string | 'Learn more' | Label on the footer action button. |
PageBanner
Full-viewport-width (100vw) bg-primary callout band with white centered text.
Props & Slots
| Prop | Type | Default | Description |
|---|---|---|---|
text | string | undefined | Banner text (overridden if the default slot is provided). |
PageCta
Highlighted call-to-action <v-card> with title, description, action buttons, caption, and an optional default slot (for forms or custom embeds).
Props
| Prop | Type | Default | Description |
|---|---|---|---|
title | string | undefined | CTA <h2> headline. |
description | string | undefined | Supporting text. |
caption | string | undefined | Small muted text below the buttons. |
links | PageLink[] | undefined | CTA buttons rendered as <v-btn>. |
variant | VCard['variant'] | 'outlined' | Vuetify card variant. |
color | string | 'secondary' | Vuetify card color. |
align | 'left' | 'center' | 'right' | 'center' | Content and button alignment. |
Slots
title, description, actions, caption, and default.
PageFaq
Accessible accordion (<v-expansion-panels multiple eager>) that renders Markdown in both question and answer via <MDC> and automatically registers FAQPage + Question Schema.org JSON-LD nodes via buildFaqSchemaNodes and useSchemaOrg.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
questions | Array<{ question: string; answer: string }> | undefined | List of FAQ entries (Markdown supported in both fields). |
variant | VExpansionPanels['variant'] | 'default' | Vuetify expansion panel variant. |
PageSplitList
Two-column divided list (md="4" heading column + md="8" description column) with Markdown rendering (<MDC>) in both title and description.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
items | Array<{ title: string; description: string }> | Required | Rows rendered with <v-divider> separators between items. |
Structural & Typography Components
PageTitle
Centered page header used across index pages (articles, topics, contributors, notes) and standard content pages.
Props & Slots
| Prop | Type | Default | Description |
|---|---|---|---|
overline | string | undefined | Optional eyebrow label. |
title | string | undefined | Main <h1> heading. |
description | string | undefined | Subtitle below the heading. |
links | PageLink[] | undefined | Action buttons below the description. |
align | 'left' | 'center' | 'right' | 'center' | Text alignment via useAlignment. |
Slots: overline, title, description, actions, and default.
PageBreadcrumbs
Semantic <nav aria-label="Breadcrumbs"> wrapping Vuetify's <v-breadcrumbs>.
| Prop | Type | Default | Description |
|---|---|---|---|
breadcrumbs | BreadcrumbItem[] | Required | Array of { title: string; to?: RouteLocationRaw; disabled?: boolean }. |
PageContainer
Thin <v-container> wrapper used by built-in CMS page templates so spacing can be customized globally via a single component override.
PageBody
Centered reading-width column (cols="12" md="10" lg="8" xl="6") wrapping a default slot.
PageContentStyles
Typography wrapper applied around <ContentRenderer> on pages, articles, notes, contributors, and docs. Provides consistent link underlines, heading scale and scroll-margin-top offsets, blockquotes, responsive images, horizontal rules, and scrollable tables.
PageToc
Interactive table of contents with scrollspy (useTocScrollspy), smooth anchor scrolling, and an animated SVG active rail indicator (automatically disabled in inline mode or under prefers-reduced-motion).
Props & Emits
| Prop | Type | Default | Description |
|---|---|---|---|
links | PageTocLink[] | [] | Nested heading tree from page.body.toc.links ({ id, text, depth?, children? }). |
title | string | 'On this page' | Heading rendered above the list (pass '' to omit). |
inline | boolean | false | Renders compact borderless list without the animated SVG rail (used inside mobile accordions). |
Emits select(id: string) whenever a heading link is clicked.