Demo combining Vercel's Streamdown with remark-mdc for streaming custom MDC components
A demo showcasing streaming MDC (Markdown Components) content, combining Vercel’s Streamdown with remark-mdc for rendering custom components in real-time.
undefinedLive Demo: https://streamdown-mdc-demo.vercel.app
The demo includes these custom components:
::alert{type="info"}
This is an info alert.
::
::alert{type="warning"}
This is a warning alert.
::
::callout{icon="💡" title="Pro Tip"}
Callout with icon and title.
::
::card{title="Feature Card"}
Card content with **markdown** support.
::
Inline components: :badge[New]{color="green"} :badge[Beta]{color="yellow"}
# Install dependencies
pnpm install
# Start development server
pnpm dev
# Build for production
pnpm build
# Preview production build
pnpm preview
src/
├── components/
│ ├── MDCComponents.tsx # Custom MDC components (Alert, Card, etc.)
│ └── MDCRenderer.tsx # Renders MDC AST to React elements
├── lib/
│ └── mdc-parser.ts # remark-mdc parser using unified
├── App.tsx # Main app with streaming controls
└── index.css # Tailwind CSS setup
MIT
We use cookies
We use cookies to analyze traffic and improve your experience. You can accept or reject analytics cookies.