Interactive MDX Components
This page demonstrates interactive MDX components in Quartz!
Counter Component
Here's an interactive counter - click the buttons to change the value:
Count: 5
Alert Components
Different types of alerts:
ℹ️ Information
This is an informational alert. It's useful for tips and notes.
⚠️ Warning
Be careful! This is a warning message.
✅ Success
Great job! Something worked correctly.
Collapsible Section
Click to expand and collapse:
Regular Markdown Still Works
- Bullet points
- Bold text
- Italic text
- Links
// Code blocks too!
const message = "Hello from MDX!"
console.log(message)
How It Works
These components are:
- Server-rendered at build time for fast initial load
- Hydrated on the client for interactivity
- Fully typed with TypeScript
You can add your own components in quartz/mdx/components.tsx!