Skip to content

Commit ca1ff33

Browse files
committed
docs: add playground codesandbox
1 parent 3040298 commit ca1ff33

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

docs/.vitepress/config.mts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ export default defineDocsVitepressConfig(configs, {
5454
}
5555
]
5656
},
57+
{
58+
text: 'Playground',
59+
link: '/introduction/playground',
60+
}
5761
],
5862
},
5963
{

docs/introduction/playground.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Playground
2+
3+
You can try it out in [CodeSandbox](https://codesandbox.io/s/v4kdvz?file=/src/App.tsx).
4+
5+
<iframe src="https://codesandbox.io/embed/v4kdvz?view=editor+%2B+preview&module=%2Fsrc%2FApp.tsx&hidenavigation=1"
6+
style="width:100%; height: 500px; border:0; border-radius: 4px; overflow:hidden;"
7+
title="mobx-view-model-approach"
8+
allow="accelerometer; ambient-light-sensor; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; payment; usb; vr; xr-spatial-tracking"
9+
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
10+
></iframe>

0 commit comments

Comments
 (0)