MDX Component Showcase
A comprehensive demo of all available MDX components and styling options
demo, mdx, components
MDX Component Showcase
This post demonstrates all the available components and styling options in the afterthoughts section.
Typography
Headings
You can use headings from H1 to H6. The H1 is usually reserved for the post title.
Emphasis and Styling
You can make text bold, italic, or both. You can also add inline code snippets.
Lists
Unordered Lists
- First item
- Second item
- Nested item
- Another nested item
- Third item
Ordered Lists
- First step
- Second step
- Third step
Links
You can add external links or internal links to other posts.
Callouts
This is an info callout. Use it to highlight important information!
Success! This callout is perfect for positive messages and achievements.
Warning! Use this to alert readers about potential issues or things to watch out for.
Error! This callout is for critical information or things that went wrong.
This is the default callout style for general notes and asides.
Quotes
The only way to do great work is to love what you do. If you haven't found it yet, keep looking. Don't settle.
Code Blocks
With Syntax Highlighting
1import React from 'react';23export default function Component() {4const [count, setCount] = React.useState(0);56return (7<div>8<h1>Count: {count}</h1>9<button onClick={() => setCount(count + 1)}>10Increment11</button>12</div>13);14}
Standard Code Blocks
console.log("This is a standard code block");
const greeting = "Hello, world!";
Images
Image carousel
Video Embeds
Horizontal Rules
Use horizontal rules to separate sections:
Tables
| Feature | Supported | Notes | |---------|-----------|-------| | Typography | ✅ | Full markdown support | | Code Blocks | ✅ | With syntax highlighting | | Images | ✅ | With captions | | Videos | ✅ | YouTube and Vimeo |
Conclusion
This showcase demonstrates all the components available for creating rich, engaging afterthoughts posts. Mix and match these elements to create compelling content!