MDX Basics
This page shows examples of the simplest high-value additions MDX gives us over plain Markdown. These are useful when we want content to stay author-friendly while still allowing richer presentation.
These patterns are valuable because they stay close to writer-friendly Markdown while allowing cleaner layouts and more purposeful interaction.
Collapsible Content
Click to expand a quick explanation
Collapsible sections are useful for optional guidance, troubleshooting notes, release-specific caveats, or long explanatory sidebars that should not dominate the page by default.
Tabs
- For Writers
- For End Users
- For Reviewers
Writers can keep one page and present multiple variants without duplicating the whole topic.
End users can switch to the information that applies to their context without wading through irrelevant content.
Reviewers can compare scenarios side by side and validate the logic more efficiently.
Admonitions
Use warnings when a user could make a mistake or misunderstand a process.
Use danger callouts only when the consequence is meaningful enough to justify the visual weight.
Code and Inline Markup
You can mix prose with technical notation such as component props, API names,
routes, or commands. This is useful when a help topic needs to refer to
exact UI labels, component names, or implementation examples without losing
readability.
<ShowcaseVideo
title="Prototype Video Embed"
description="Reusable media block inside an MDX page."
src="https://example.com/video.mp4"
/>
Where this helps most
- FAQ-heavy pages
- role-based instructions
- browser vs mobile variations
- admin vs end-user differences
- optional advanced guidance