MDX Content Components Sample
A sample MDX article for testing reusable content components in posts and pages without adding project-specific styling.
MDX Content Components Sample
This MDX post exercises reusable content components with generic editorial examples. It is intentionally generic so the starter can be forked without carrying project-specific assumptions.
Markdown Blockquote
Normal Markdown blockquotes should keep the global article styling.
Use a standard Markdown blockquote when the quote does not need structured attribution.
Quote
Use Quote when the quote needs visible attribution.
Reusable components should support editorial structure without tying a starter to a specific brand voice.
A component library works best when common patterns stay easy to reuse and easy to rebrand.
External source links should render with safe external-link attributes.
Callout
The reusable Callout component supports short notes, tips, warnings, and
high-risk cautions inside articles.
Gallery
Use Gallery when a post or page needs a simple responsive image grid with
captions and optimized local images.
Embed
Use Embed for consent-aware third-party video embeds without pasting raw
iframe HTML into MDX content.
YouTube embed blocked
This third-party video loads only after you allow the configured privacy category.
Vimeo embed blocked
This third-party video loads only after you allow the configured privacy category.
Tabs
Use Tabs when a page or post needs readers to switch between a few related
content panels without leaving the article.
Plan
Define the reader need, required sources, and reusable structure before drafting the page.
Draft
Keep project-specific claims in content and keep reusable behavior inside shared components.
Review
Check accessibility, mobile overflow, SEO metadata, and whether the example remains useful after a fork.
TableScroll
Use TableScroll when a comparison table needs a visible caption and a safer
horizontal scroll region on smaller screens.
| Component | Best for | Accepts Markdown in the body | Useful semantic element | Mobile behavior |
|---|---|---|---|---|
| Quote | Attributed quotations with optional source links | Yes | figure with blockquote | Stacks attribution below the quote |
| Callout | Notes, tips, warnings, and cautions inside editorial content | Yes | aside | Keeps icon and content aligned |
| Gallery | Responsive editorial image grids with optional captions | No | figure with images | Collapses to fewer columns as needed |
| Tabs | Switching between related article panels | Yes | ARIA tabs and tabpanels | Scrolls long tab labels horizontally |
| TableScroll | Wide comparison tables that need a caption | Yes | figure with figcaption | Adds a focused horizontal scroll region |
Prose After Callouts
Regular MDX content should continue to use the normal article typography after a callout block.
- Lists should keep the same spacing as normal prose.
- Code snippets should keep the global code styling.
- Links should keep the article link treatment.
Site Author
Technical writer and creator of this website, focused on practical guides for content-heavy, SEO-focused Astro projects.
Related articles

Web Development4 min read
Astro SEO Test Post for a Static Blog
A simple test article for checking Astro blog routing, SEO metadata, images, dates, tags, categories, and content rendering.

Web Development4 min read
Second Starter Test Post
A simple test article for checking Astro blog routing, SEO metadata, images, dates, tags, categories, and content rendering.
More from Site Author

Web Development4 min read
Astro SEO Test Post for a Static Blog
A simple test article for checking Astro blog routing, SEO metadata, images, dates, tags, categories, and content rendering.

Web Development4 min read
Second Starter Test Post
A simple test article for checking Astro blog routing, SEO metadata, images, dates, tags, categories, and content rendering.