mdxcn
Open-source MDX components that draw callouts, timelines, tables and charts with text glyphs, installed via the shadcn CLI.
At a Glance
Free, MIT-licensed set of Markdown-friendly React/MDX components; copy the source into your app via the shadcn CLI.
Engagement
Available On
Alternatives
Listed Nov 2026
About mdxcn
mdxcn is an open-source set of Markdown-friendly React components for MDX, started by Keshav Bagaade and now part of Shadcn Labs. It draws callouts, steps, timelines, tables and charts using text glyphs, and is released under the MIT license. Components are copied into a project with the shadcn CLI rather than installed as an npm package.
What It Is
mdxcn is a component library for documentation and write-ups. In MDX, you write a Markdown list or table inside a tag and get a live React component; each figure sits in a dashed frame with its title on the top edge and takes its colors from the app theme. Most graphs also have a plain-text version that can be pasted into READMEs, GitHub, Linear and pull request comments, where MDX does not render.
The docs list 47 components grouped into content (callout, quote, steps, terminal, changelog, annotate, decision, chat, env, endpoint, keys, faq), diagrams (flow, timeline, tree, gantt, board), data (stat, spec, check, diff, kpi, table, sheet, compare, matrix, invoice), charts (rank, funnel, slope, bullet, score, waterfall, stack, spark, plot, meter, waffle, cells, bars, heatmap, activity), time (uptime, calendar, timer, countdown) and a frame primitive.
Install and Customization
The shadcn CLI copies a component's source into your repo, for example with the @mdxcn registry namespace; files can also be copied manually from GitHub. Corners, glyphs, palettes, accents and frame styles can be changed, and components are written in TypeScript. Each component includes a screen-reader summary.
Agents, Comark and Knap
An agent skill tells a coding agent which graph fits the content and what to write for each file type: Markdown inside the tag in MDX, a ::graph-* block in Comark, a graph_* filter in Knap, or the plain-text figure in a README. The site also publishes an llms.txt and an OpenAPI document.
Support Model
The site describes it as a one-person project with no support desk; bugs and pull requests go to GitHub issues.
Community Discussions
Be the first to start a conversation about mdxcn
Share your experience with mdxcn, ask questions, or help others learn from your insights.
Pricing
Open Source
Free, MIT-licensed set of Markdown-friendly React/MDX components; copy the source into your app via the shadcn CLI.
- MIT License
- Copy source into your app with the shadcn CLI
- Text-powered charts, callouts, steps, timelines and tables
- Works with MDX, Comark blocks and Knap filters
Capabilities
Key Features
- Text-glyph figures instead of SVG or canvas
- Markdown lists and tables written inside component tags
- 47 components: callouts, steps, timelines, tables, charts, uptime and more
- Plain-text version of most figures for READMEs and pull requests
- Live previews in the documentation
- Customizable corners, glyphs, palettes, accents and frames
- Copy-the-source install via shadcn CLI registry
- Agent skill for choosing and writing graphs
- Comark ::graph-* blocks and Knap filters
- Type-safe React components with TypeScript props
