Spec Frontmatter and Icons
Spec Frontmatter and Icons

Page metadata: title, description, icon, and labels.

Frontmatter is the YAML block at the top of a spec page. It sets the page title, description, sidebar icon, and optional labels. It must be the first block in the file, wrapped in ---.

Available keys

KeyTypeExampleEffect
titlestringtitle: "API Basics"Title in header and sidebar
descriptionstringdescription: "How to call the API."Subtitle and search summary
iconstringicon: BookOpenIcon near the title
labelstringlabel: proBadge text near the title
label_colorstringlabel_color: orangeBadge color
label_descriptionstringlabel_description: "Pro plan"Badge tooltip

Full example

---
title: 'API Basics'
description: 'How to call the API safely and consistently.'
icon: BookOpen
label: pro
label_color: orange
label_description: 'Available for Pro Plan users'
---

Icons

Icons accept a name (for example BookOpen) or an Iconify-style id (for example lucide:book-open). The icon appears next to the page title in the sidebar and header.

Labels can be global

A label can resolve to a globally defined label (text, color, and description) declared in the root specs/meta.yaml, so badges stay consistent across pages.

Plan labels in page content

Use the <PlanLabel /> component to place a badge inside the document body (not only in frontmatter). Insert it from the editor toolbar (Plan label) or write MDX directly.

This API is available on <PlanLabel name="pro" /> plans.

<PlanLabel name="ent" variant="block" title="Enterprise">
  Self-hosted deployments use repository branches instead of cloud branches.
</PlanLabel>
PropExampleEffect
namename="pro"Key from root specs/meta.yamllabels
texttext="Beta"Custom badge text (no global definition)
colorcolor="blue"Badge color override
descriptiondescription="…"Tooltip on hover
variantvariant="block"Bordered box; optional title and child content

Editing via the toolbar

Open the page in edit mode

Switch the page to the editor.

Open Edit Page Properties

In the editor toolbar, open the Edit Page Properties dialog.

Update metadata

Edit description, icon, and additional fields like label, label_color, label_description.

Save and verify

Confirm the sidebar and header reflect the change.

The page title is also editable from the title input in the editor header. The dialog manages description, icon, and additional frontmatter fields.

Keep description short and meaningful — it doubles as the search summary. For the underlying syntax, see Code and Frontmatter.

Last updated on