Apr 10, 2026 1.1 KB markdown

frontmatter

.mdx files can start with a YAML frontmatter block. sublimated uses it for the <title>, meta description, and per-page render options.

---
title: SSH client for macOS
description: connect to servers, browse remote files, chat with agents.
---


# your content starts here

fields

  • title — sets <title> in the HTML head. defaults to "Untitled"

  • description — sets <meta name="description">. optional

  • hydrate — enable client-side hydration for interactive components. defaults off

hydration

pure prose pages ship zero JavaScript. if you import a component that needs interactivity (tabs, accordions, charts that respond to clicks), set hydrate: true:

---
title: Docs
hydrate: true
---


import { Tabs, Tab } from 'fumadocs-ui/components/tabs'


<Tabs>
  <Tab title="one">content</Tab>
  <Tab title="two">content</Tab>
</Tabs>

React attaches event handlers to the SSR output — no layout shift.

accessing frontmatter in layout

frontmatter is not passed to .sbl/layout.tsx — it's read at the wrapper level to build the <head>. your layout only sees { children }.