You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/getting-started/authoring.mdx
+35Lines changed: 35 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -413,6 +413,41 @@ It is also possible to pass some individual [file format](https://sandpack.codes
413
413
414
414
</details>
415
415
416
+
#### `Sandpack[fileExplorer]`
417
+
418
+
```tsx
419
+
<Sandpack
420
+
template="react-ts"
421
+
folder="authoring-sandpack-cloud"
422
+
fileExplorer
423
+
/>
424
+
```
425
+
426
+
<details>
427
+
<summary>Result</summary>
428
+
429
+
<Sandpack
430
+
template="react-ts"
431
+
folder="authoring-sandpack-cloud"
432
+
fileExplorer
433
+
/>
434
+
435
+
</details>
436
+
437
+
> [!TIP]
438
+
> Conveniently, enabling `fileExplorer` will by default `[codeEditor={showTabs: false}]`.
439
+
> You can override it with [`[codeEditor]` options](#sandpack[codeeditor])
440
+
441
+
You can also pass [any `fileExplorer={options: ComponentProps<SandpackFileExplorer>}`](https://sandpack.codesandbox.io/docs/advanced-usage/components#file-explorer:~:text=Preview-,Options,-If%20you%27re%20looking).
442
+
443
+
#### `Sandpack[codeEditor]`
444
+
445
+
You can pass [any `codeEditor={options: ComponentProps<SandpackCodeEditor>}`](https://sandpack.codesandbox.io/docs/advanced-usage/components#code-editor:~:text=Preview-,Options,-Extensions).
446
+
447
+
#### `Sandpack[preview]`
448
+
449
+
You can pass [any `preview={options: ComponentProps<SandpackPreview>}`](https://sandpack.codesandbox.io/docs/advanced-usage/components#preview:~:text=Preview-,Options,-Additional%20buttons).
0 commit comments