Skip to content

docs: document snippet variables in code blocks#5886

Closed
mintlify[bot] wants to merge 2 commits into
mainfrom
mintlify/50582f02
Closed

docs: document snippet variables in code blocks#5886
mintlify[bot] wants to merge 2 commits into
mainfrom
mintlify/50582f02

Conversation

@mintlify
Copy link
Copy Markdown
Contributor

@mintlify mintlify Bot commented May 21, 2026

Summary

Snippet variables (props) can now be referenced inside fenced code blocks within a snippet, and the value passed in as a prop replaces the placeholder when the page renders.

Changes

  • Added a new section to create/reusable-snippets.mdx covering snippet variables in code blocks, including a usage example.
  • Mirrored the update across the French, Spanish, and Chinese translations.

Context

Documents the change introduced in mintlify/mint#7854, which added support for snippet variable replacement inside code block content.


Note

Low Risk
Low risk documentation-only change; updates add guidance/examples and translated copies without affecting runtime behavior.

Overview
Documents that snippet props can be interpolated inside fenced code blocks using {variableName}, with an example snippet (installCommand) and import usage.

Mirrors the same new section across the Spanish, French, and Chinese versions of create/reusable-snippets.mdx.

Reviewed by Cursor Bugbot for commit dde7680. Bugbot is set up for automated code reviews on this repo. Configure here.

@mintlify
Copy link
Copy Markdown
Contributor Author

mintlify Bot commented May 21, 2026

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
mintlify 🟢 Ready View Preview May 21, 2026, 11:07 PM

@mintlify
Copy link
Copy Markdown
Contributor Author

mintlify Bot commented May 21, 2026

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
testsignup415 🟢 Ready View Preview May 21, 2026, 11:07 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

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.

1 participant