Component Playground
Interactive preview and testing environment for all custom MDX components
Component Playground#
Every example below is a live, working preview — not just a code snippet. Use the Preview/Code tabs to see the component actually render, then copy the code for your own MDX files. The full component documentation pages still have the deepest prop-by-prop reference.
Live Examples
Each block below renders the real component with real props — switch to the "Code" tab on any preview to copy it.
UnifiedMetrics#
Basic Example#
Project Metrics
Total Projects
Completed projects
Lines of Code
Technologies
Card Variant#
Key Metrics
API Response Time
Minimal Variant#
Key Metrics
See Full UnifiedMetrics Documentation →
UnifiedInfo#
Alert Variant (Info)#
Information
Your informational message here
Alert Variant (Warning)#
Caution
Warning: Important warning message
Card Variant (Success)#
Success!
✅ Operation completed successfully!
Grid Variant#
UnifiedInfo doesn't implement a grid/item variant itself — use the InfoGrid + InfoItem helpers:
Fast
Lightning-fast performance
Secure
Enterprise-grade security
Scalable
Auto-scales seamlessly
See Full UnifiedInfo Documentation →
Timeline#
Project Timeline
Production Launch
Successfully launched to production
Beta Testing
Comprehensive beta testing
Key Achievements:
- ●1,000+ beta testers
- ●95% satisfaction rate
ProjectCard#
AI-Powered Developer Platform
CompletedBuilt a comprehensive developer platform with AI features
- ●Reduced development time by 40%
- ●99.9% platform uptime
- ●10,000+ active developers
Highlight#
Information
Your information here
Important Warning
Warning message
Great Job!
Success message
Pro Tip
Helpful tip
TechStack#
Technology Stack
Advanced React patterns and performance optimization
Type-safe development
RESTful APIs and microservices
CodeBlock#
1import { apiClient } from '@/lib/api'23async function fetchUserData(userId: string) {4try {5const response = await apiClient.get('/users/' + userId)6return response.data7} catch (error) {8console.error('Failed to fetch user:', error)9throw error10}11}CodeSandbox#
A self-contained, runnable HTML/CSS/JS playground — edit any pane and hit Run to see it update live. Executes entirely in a sandboxed <iframe> (no allow-same-origin, no external bundler service), so visitor-edited code can never touch this page's cookies, storage, or DOM.
<CodeSandbox
title="Counter demo"
html={`<button id="btn">Clicked 0 times</button>`}
css={`
button {
font: inherit;
padding: 0.5rem 1rem;
}
`}
js={`let count = 0;
document.getElementById('btn').addEventListener('click', () => {
count += 1;
});`}
/>
CompanyCard#
Your Role
Company Name
Role description and responsibilities
Technologies Used
- ●Achievement 1
- ●Achievement 2
FeatureGrid#
Platform Features
ComparisonTable#
Plan Comparison
For individuals getting started
Use case: 1,000 API calls/month, community support
✅ Pros:
- •No cost
- •Quick to set up
❌ Cons:
- •No custom domain
- •Community support only
For growing teams
Use case: 100,000 API calls/month, email support (24h), custom domain
✅ Pros:
- •Custom domain
- •Priority email support
❌ Cons:
- •No phone support
For large organizations
Use case: Unlimited API calls/month, phone support (1h), custom domain
✅ Pros:
- •Unlimited scale
- •Dedicated phone support
❌ Cons:
- •Higher cost
Quick Reference#
Component Documentation#
- UnifiedMetrics - Metrics and KPIs
- UnifiedInfo - Information boxes and alerts
- Timeline - Visual timelines
- ProjectCard - Project showcases
- TechStack - Technology proficiency
- CodeBlock - Enhanced code display
- FeatureGrid - Feature grids
- ComparisonTable - Side-by-side comparisons
Common Patterns#
The snippets below are page-level skeletons (with [...] placeholders for your own data), so they're kept as copy-paste code rather than live previews — see the fully live examples above for each individual component.
Dashboard Layout#
# Dashboard
<UnifiedMetrics
title="Key Metrics"
variant="card"
columns={3}
metrics={[...]}
/>
<InfoGrid columns={2}>
<InfoItem title="Feature 1" description="..." />
<InfoItem title="Feature 2" description="..." />
</InfoGrid>
Documentation Page#
# Documentation Page
<Highlight type="info" title="Overview">
Introduction text
</Highlight>
## Section
Content here...
<CodeBlock language="typescript" filename="example.ts">
{\`code here\`}
</CodeBlock>
Project Showcase#
# Project
<ProjectCard
title="Project Name"
description="Details"
technologies={[...]}
achievements={[...]}
metrics={[...]}
/>
<Timeline
title="Timeline"
items={[...]}
/>
Copy & Paste Templates#
Generic starting points — copy, then swap in your own content.
Info Section#
<UnifiedInfo type="info" variant="alert" title="Quick Info">
Your information here
</UnifiedInfo>
Metrics Dashboard#
Dashboard
Metric 1
Metric 2
Metric 3
Feature Highlights#
<InfoGrid columns={3}>
<InfoItem title="Feature 1" description="Description 1" />
<InfoItem title="Feature 2" description="Description 2" />
<InfoItem title="Feature 3" description="Description 3" />
</InfoGrid>
Need More Examples?#
Visit the comprehensive documentation pages for detailed examples, props documentation, and best practices: