Skip to content

feat: add Use Case diagram to sample diagrams and documentation#1935

Open
Sudhanshu-Ambastha wants to merge 1 commit intomermaid-js:developfrom
Sudhanshu-Ambastha:develop
Open

feat: add Use Case diagram to sample diagrams and documentation#1935
Sudhanshu-Ambastha wants to merge 1 commit intomermaid-js:developfrom
Sudhanshu-Ambastha:develop

Conversation

@Sudhanshu-Ambastha
Copy link
Copy Markdown

Description

This PR adds the "Use Case" diagram to the Live Editor, allowing users to discover and test the new syntax easily.

Changes

  • Added Use Case sample code to src/lib/components/Preset.svelte within the extras object.
  • Mapped the documentation link in src/lib/components/DiagramDocumentationButton.svelte to /syntax/usecase.html.

Related Issues

Relates to core Mermaid PR: mermaid-js/mermaid#7569 (Use Case Diagram Implementation)

Note to Maintainers

The documentation link will point to a 404 until the main Mermaid site is rebuilt with the new syntax docs. This is intended to ensure functionality once the core release is live.

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 15, 2026

Deploy Preview for mermaidjs ready!

Name Link
🔨 Latest commit c3a8931
🔍 Latest deploy log https://app.netlify.com/projects/mermaidjs/deploys/69df554ccc66830008baedaf
😎 Deploy Preview https://deploy-preview-1935--mermaidjs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Member

@sidharthv96 sidharthv96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If a diagram is officially supported by mermaid, it's samples will be pulled from the https://www.npmjs.com/package/@mermaid-js/examples package. We should not be adding it as extras.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants