Skip to content

docs: document src prop on Icon component#6150

Open
mintlify[bot] wants to merge 1 commit into
mainfrom
mintlify/627a9234
Open

docs: document src prop on Icon component#6150
mintlify[bot] wants to merge 1 commit into
mainfrom
mintlify/627a9234

Conversation

@mintlify

@mintlify mintlify Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Summary

Document the new optional src prop on the <Icon> component for using custom image files or external image URLs as icons.

Changes

  • Add a new src ResponseField and an Either icon or src must be provided notice to the shared icons-required snippet (en, es, fr, zh).
  • Make the icon prop no longer required, and scope its options to icon-library names.
  • Add a "Custom image icons" section with examples on components/icons.mdx and its es/fr/zh translations.

Context

Follows up on mintlify/mint#8190, which made icon optional and added a src prop that accepts a path to a local image or a URL to an externally hosted image.


Note

Low Risk
Documentation-only updates to MDX snippets and translated pages; no runtime or API behavior changes in this repo.

Overview
Documents the <Icon> component’s optional src prop for custom images (local paths or external URLs), aligned with the product change in mint#8190.

The shared icons-required snippets (en, es, fr, zh) now state that icon or src is required, drop required on icon, limit icon to library names, and add a dedicated src field. components/icons.mdx and es/fr/zh translations add a Custom image icons section with MDX examples.

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

@mintlify mintlify Bot requested a review from rtbarnes June 11, 2026 15:13
@mintlify

mintlify Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor Author

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

Project Status Preview Updated (UTC)
mintlify 🟢 Ready View Preview Jun 11, 2026, 3:24 PM

@mintlify

mintlify Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor Author

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

Project Status Preview Updated (UTC)
smartac 🟢 Ready View Preview Jun 11, 2026, 3:30 PM

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

@mintlify

mintlify Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor Author

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

Project Status Preview Updated (UTC)
testsignup415 🟢 Ready View Preview Jun 11, 2026, 3:33 PM

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

@mintlify

mintlify Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor Author

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

Project Status Preview Updated (UTC)
adminroletesting 🟢 Ready View Preview Jun 11, 2026, 3:37 PM

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

@mintlify

mintlify Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor Author

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

Project Status Preview Updated (UTC)
hfh-d7a4d643 🟢 Ready View Preview Jun 11, 2026, 3:43 PM

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

@mintlify

mintlify Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor Author

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

Project Status Preview Updated (UTC)
gwgwgw 🟢 Ready View Preview Jun 11, 2026, 3:52 PM

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

@mintlify

mintlify Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor Author

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

Project Status Preview Updated (UTC)
tomee 🟢 Ready View Preview Jun 11, 2026, 3:54 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