Page Block Components

API reference for MDC page-building and structural components provided by @nuxtify/cms.

Overview

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.

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

PropTypeDefaultDescription
overlinestringundefinedEyebrow text above the main title.
titlestringundefinedHero headline.
titleTag'h1' | 'h2''h1'Heading element used for the title.
descriptionstringundefinedSupporting lead copy.
captionstringundefinedSmall muted note rendered below the action buttons.
linksPageLink[]undefinedAction 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

PropTypeDefaultDescription
overlinestringundefinedEyebrow text above the section heading.
titlestringundefinedSection <h2> heading.
descriptionstringundefinedSupporting subtitle below the heading.
align'left' | 'center' | 'right''center'Text and row alignment.
hiddenbooleanfalseWhen 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

PropTypeDefaultDescription
titlestringundefinedCard <h3> title.
descriptionstringundefinedCard subtitle (parsed as Markdown via <MDC>).
linkPageLinkundefinedMakes the card clickable (to/href) and optionally renders prependIcon or appendIcon.
variantVCard['variant']'outlined'Vuetify card variant.
colorstringundefinedOptional 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

PropTypeDefaultDescription
tostringRequiredInternal route target.
titlestring''Card heading.
descriptionstring''Supporting copy (parsed as Markdown via <MDC>).
buttonTextstring'Learn more'Label on the footer action button.

PageBanner

Full-viewport-width (100vw) bg-primary callout band with white centered text.

Props & Slots

PropTypeDefaultDescription
textstringundefinedBanner 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

PropTypeDefaultDescription
titlestringundefinedCTA <h2> headline.
descriptionstringundefinedSupporting text.
captionstringundefinedSmall muted text below the buttons.
linksPageLink[]undefinedCTA buttons rendered as <v-btn>.
variantVCard['variant']'outlined'Vuetify card variant.
colorstring'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

PropTypeDefaultDescription
questionsArray<{ question: string; answer: string }>undefinedList of FAQ entries (Markdown supported in both fields).
variantVExpansionPanels['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

PropTypeDefaultDescription
itemsArray<{ title: string; description: string }>RequiredRows 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

PropTypeDefaultDescription
overlinestringundefinedOptional eyebrow label.
titlestringundefinedMain <h1> heading.
descriptionstringundefinedSubtitle below the heading.
linksPageLink[]undefinedAction buttons below the description.
align'left' | 'center' | 'right''center'Text alignment via useAlignment.

Slots: overline, title, description, actions, and default.

Semantic <nav aria-label="Breadcrumbs"> wrapping Vuetify's <v-breadcrumbs>.

PropTypeDefaultDescription
breadcrumbsBreadcrumbItem[]RequiredArray 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

PropTypeDefaultDescription
linksPageTocLink[][]Nested heading tree from page.body.toc.links ({ id, text, depth?, children? }).
titlestring'On this page'Heading rendered above the list (pass '' to omit).
inlinebooleanfalseRenders compact borderless list without the animated SVG rail (used inside mobile accordions).

Emits select(id: string) whenever a heading link is clicked.