Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion react-components.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ icon: "react"
---

import { Counter } from "/snippets/counter.mdx";
import { ColorGenerator } from "/snippets/color-generator.mdx";
import { ColorGenerator } from "/snippets/color-generator.jsx";

[React components](https://react.dev) are a powerful way to create interactive and reusable elements in your documentation.

Expand Down
5 changes: 5 additions & 0 deletions reusable-snippets.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ description: 'Reusable, custom snippets to keep content in sync'
icon: 'recycle'
---

import MintlifyIframe from "/snippets/iframe.jsx";

<MintlifyIframe iframeUrl="https://mintlify.com/docs/quickstartss" />


One of the core principles of software development is DRY (Don't Repeat
Yourself), which applies to documentation as
well. If you find yourself repeating the same content in multiple places, you
Expand Down
9 changes: 9 additions & 0 deletions snippets/iframe.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const MintlifyIframe = ({ iframeUrl }) => {
return (
<div className="w-full h-48">
<iframe src={iframeUrl} className="w-full h-full rounded-lg" />
</div>
)
}

export default MintlifyIframe;