Skip to content

Commit d7ef6f5

Browse files
committed
test
1 parent 163ddfa commit d7ef6f5

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

react-components.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ icon: "react"
55
---
66

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

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

reusable-snippets.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ description: 'Reusable, custom snippets to keep content in sync'
44
icon: 'recycle'
55
---
66

7+
import MintlifyIframe from "/snippets/iframe.jsx";
8+
9+
<MintlifyIframe iframeUrl="https://mintlify.com/docs/quickstart" />
10+
11+
712
One of the core principles of software development is DRY (Don't Repeat
813
Yourself), which applies to documentation as
914
well. If you find yourself repeating the same content in multiple places, you

snippets/iframe.jsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const MintlifyIframe = ({ iframeUrl }) => {
2+
return (
3+
<div className="w-full h-48">
4+
<iframe src={iframeUrl} className="w-full h-full" />
5+
</div>
6+
)
7+
}
8+
9+
export default MintlifyIframe;

0 commit comments

Comments
 (0)