Mermaid Diagram
- from @ericts
A responsive Mermaid rendering surface with streaming and error states, repair hooks, and accessible pan and zoom both inline and in a fullscreen viewer.
Install
New to shadcn? Set up your project
If your project already has a shadcn components.json, skip initialization. Otherwise, run this once from your project root.
pnpm dlx shadcn@latest initpnpm dlx shadcn@latest add @ericts/mermaid-diagramRegistry dependencies4
- button
- separator
- tooltip
- use-reduced-motion
