Demo: MDX Components Integration
Software

Demo: MDX Components Integration

Published on 2024-03-21

Learn how to use custom components in your MDX articles including Twitter embeds, callout boxes, image galleries, and tech specs.

MDX Components Demo

This article demonstrates how to use custom components within MDX files for rich, interactive content.

1. Twitter Embeds

You can easily embed tweets in your articles:

2. Callout Boxes

Different types of callout boxes for highlighting important information:

๐Ÿ’ก
Pro Tip

This is an info callout box. Perfect for sharing useful tips and information with readers.

โš ๏ธ
Important Warning

This is a warning callout. Use it to highlight important caveats or potential issues.

โœ…
Success Story

This is a success callout. Great for highlighting positive outcomes or achievements.

โŒ
Error Alert

This is an error callout. Use it to highlight problems or things to avoid.

๐Ÿ’ก
Expert Insight

This is an info callout using DaisyUI alert component. Much cleaner and consistent!

3. Image Galleries

Create beautiful image galleries with different layouts:

4. Technical Specifications

Display technical specifications in a clean, organized format:

๐Ÿ”ง NVIDIA RTX 5090 Specifications

GPU Architecture Blackwell (GB202)
Process Node TSMC 4nm (N4P)
CUDA Cores ~21,760
RT Cores 4th Generation
Tensor Cores 5th Generation
Memory 24GB GDDR7
Memory Bus 384-bit
Memory Bandwidth ~1.5 TB/s
Base Clock ~2.2 GHz
Boost Clock ~2.7 GHz
TDP 550-600W
Power Connector PCIe 5.0 16-pin

5. Cards Layout for Specs

You can also display specs in a card format:

๐Ÿ”ง Key Features

DLSS 4.0
AI-powered upscaling
Ray Tracing
Real-time global illumination
AV1 Encoding
Dual encoders for streaming
PCIe 5.0
Latest interface standard

6. Statistics Cards

Display impressive statistics using DaisyUI stats component:

RTX 5090 Performance Metrics

๐ŸŽฎ
Gaming Performance
70%
โ†—๏ธŽ Increase over RTX 4090
โœจ
Ray Tracing
2.5x
โ†—๏ธŽ Faster RT cores
โšก
Power Draw
600W
Maximum TDP

7. Comparison Tables

Compare products or specifications easily:

GPU Comparison

Feature
Recommended
RTX 5090
RTX 4090
CUDA Cores 21,760 16,384
Memory 24GB GDDR7 24GB GDDR6X
RT Cores
โœ“
โœ“
DLSS 4.0
โœ“
โœ—
Price $2,199 $1,599

8. Timeline Components

Show product roadmaps or development history:

NVIDIA GPU Evolution

  • RTX 20 Series

    First consumer ray tracing GPUs

    ๐Ÿš€


  • RTX 30 Series

    Ampere architecture breakthrough

    ๐Ÿ’ก


  • RTX 40 Series

    Ada Lovelace with DLSS 3

    โšก


  • RTX 50 Series

    Blackwell architecture revolution

    ๐Ÿ”ฅ

9. Progress Indicators

Show performance comparisons or development progress:

RTX 5090 vs Competition

Gaming Performance 95%

Industry leading

Ray Tracing 100%

Best in class

Price/Performance 70%

Premium pricing

Power Efficiency 60%

High power draw

10. Data Tables

Create clean, responsive tables with simple array data:

RTX Performance Comparison

Game/Aplikasi RTX 4090 RTX 5090 (Prediksi) Peningkatan
Cyberpunk 2077 4K RT 35 FPS 60+ FPS +71%
Blender BMW Render 2.1 menit 1.2 menit +75%
3DMark Time Spy 28,000 47,000+ +68%
DLSS 3 4K Gaming 85 FPS 140+ FPS +65%

How to Use These Components

To use these components in your MDX files, simply:

  1. Import the components at the top of your MDX file
  2. Use them like HTML tags with the required props
  3. Customize styling through the available props
Development Tip

All these components are responsive and support both light and dark themes automatically. They integrate seamlessly with the siteโ€™s design system.

Benefits of MDX Components

  • Rich Content: Create more engaging articles with interactive elements
  • Consistency: Reusable components ensure consistent styling
  • Maintenance: Easy to update styling across all articles
  • Performance: Components are optimized for fast loading