🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@markdown-ui/react

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@markdown-ui/react

React renderer for markdown-ui

npmnpm
Version
0.1.11
Version published
Weekly downloads
24
-57.89%
Maintainers
1
Weekly downloads
 
Created
Source

@markdown-ui/react

Transform Markdown into interactive React components—instantly.

Turn static docs into live experiences users can click, select, and submit.

Try the live demo

Get started in 30 seconds

npm install @markdown-ui/react @markdown-ui/marked-ext marked
import { MarkdownUI } from '@markdown-ui/react';
import '@markdown-ui/react/widgets.css';
import { Marked } from 'marked';
import { markedUiExtension } from '@markdown-ui/marked-ext';

const marked = new Marked();
marked.use(markedUiExtension);

const markdown = `
\`\`\`markdown-ui-widget
select env [dev staging prod]
\`\`\`
`;

function App() {
  const handleWidgetEvent = (event) => {
    console.log('User selected:', event.detail);
  };

  return (
    <MarkdownUI 
      html={marked.parse(markdown)} 
      onWidgetEvent={handleWidgetEvent} 
    />
  );
}

What you can build

Quick inputs

text-input username "Username" "Enter name"
button-group env [dev staging prod] dev
select region [us-east us-west] us-east

Complex forms

form deploy "Launch"
  text-input name "App Name"
  slider replicas 1 10 1 3
  select env [dev prod] dev

Events made simple

const handleWidgetEvent = (event) => {
  const { id, value } = event.detail;
  // That's it - perfect event data
};

TypeScript ready

Full type safety out of the box. All components and events are properly typed for the best developer experience.

Works everywhere

SSR-safe by design. No special setup needed for Next.js, Remix, or any React framework.

// Just import and use - SSR handled automatically
import { MarkdownUI } from '@markdown-ui/react';

Compatibility: React 18+, Next.js, Remix, Create React App, Vite, and all modern React frameworks.

MIT © 2025

Keywords

react

FAQs

Package last updated on 24 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts