Skip to main content
Skip to main content

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

50+

Total Projects

Completed projects

100K++25%

Lines of Code

25+

Technologies

Card Variant#

Key Metrics

< 100ms-30%

API Response Time

Minimal Variant#

Key Metrics

24/7
Active
Healthy
Status

See Full UnifiedMetrics Documentation →


UnifiedInfo#

Alert Variant (Info)#

Alert Variant (Warning)#

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

2024 Q4

Successfully launched to production

10K+ Users

Beta Testing

2024 Q3

Comprehensive beta testing

Key Achievements:
  • 1,000+ beta testers
  • 95% satisfaction rate

ProjectCard#

AI-Powered Developer Platform

Completed

Built a comprehensive developer platform with AI features

View Project
2023-2024
Engineering Team (15 members)
Technologies
ReactTypeScriptNode.jsOpenAI
Key Achievements
  • Reduced development time by 40%
  • 99.9% platform uptime
  • 10,000+ active developers
Impact Metrics
10K+
Users
99.9%
Uptime

Highlight#

Information

Your information here

Important Warning

Warning message

Great Job!

Success message

Pro Tip

Helpful tip


TechStack#

Technology Stack

Frontend
ReactExpert

Advanced React patterns and performance optimization

Tools
TypeScriptExpert

Type-safe development

Backend
Node.jsAdvanced

RESTful APIs and microservices


CodeBlock#

api-request.ts
1import { apiClient } from '@/lib/api'
2
3async function fetchUserData(userId: string) {
4try {
5const response = await apiClient.get('/users/' + userId)
6return response.data
7} catch (error) {
8console.error('Failed to fetch user:', error)
9throw error
10}
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.

Console output appears here.
Mdx
<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

2021 - Present
Location

Role description and responsibilities

Technologies Used

ReactNode.jsAWS
Key Achievements
  • Achievement 1
  • Achievement 2

FeatureGrid#

Platform Features

Lightning Fast

Sub-100ms response times

Learn more
🔒

Secure by Default

Enterprise-grade security

Learn more
📈

Auto-Scaling

Scales automatically

Learn more

ComparisonTable#

Plan Comparison

Free

For individuals getting started

Best for: Side projects

Use case: 1,000 API calls/month, community support

✅ Pros:
  • No cost
  • Quick to set up
❌ Cons:
  • No custom domain
  • Community support only
Pro

For growing teams

Best for: Production apps

Use case: 100,000 API calls/month, email support (24h), custom domain

✅ Pros:
  • Custom domain
  • Priority email support
❌ Cons:
  • No phone support
Enterprise

For large organizations

Best for: Mission-critical workloads

Use case: Unlimited API calls/month, phone support (1h), custom domain

✅ Pros:
  • Unlimited scale
  • Dedicated phone support
❌ Cons:
  • Higher cost

Quick Reference#

Component Documentation#

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#

Mdx
# 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#

Mdx
# Documentation Page

<Highlight type="info" title="Overview">
  Introduction text
</Highlight>

## Section

Content here...

<CodeBlock language="typescript" filename="example.ts">
{\`code here\`}
</CodeBlock>

Project Showcase#

Mdx
# 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#

Mdx
<UnifiedInfo type="info" variant="alert" title="Quick Info">
  Your information here
</UnifiedInfo>

Metrics Dashboard#

Dashboard

100

Metric 1

200

Metric 2

300

Metric 3

Feature Highlights#

Mdx
<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:

Previous
First page
Next
Last page