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: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,6 +103,7 @@ The sandbox accepts the following props/parameters.
103
103
|**`entry`**| The filename of the file that runs first. This is only relevant when showing multiple files with the `files` parameter. Defaults to `index.js`, or `index.tsx` if TypeScript is enabled. |`'index.js'` or `'index.tsx'`|
104
104
|**`initialTab`**| The filename of the tab to show by default. This is only relevant when showing multiple files with the `files` parameter. Defaults to the value of `entry`. |`entry`|
105
105
|**`modules`**| An array of external modules to make available to the sandbox. Each object in the array should be an object containing a `name` and `url`. As a shorthand, pass a string name to load a module from unpkg (`https://unpkg.com/${name}`). More detail below. |`[]`|
106
+
|**`registerBundledModules`**| Should the player share its bundled React, React DOM, and React Native implementations with the running app? Disable this if you plan to pass a `react`, `react-dom` or `react-native` module url. |`true`|
106
107
|**`css`**| An optional CSS string to apply within the workspace `iframe`. |`''`|
107
108
|**`styles`**| An map of inline style objects, applied to various elements to customize the style of the UI. Example: `{ header: { backgroundColor: 'red' } }`|`{}`|
108
109
|**`strings`**| A map of strings that appear in the UI. Example: `{ loading: 'Loading dependencies...' }`|`{}`|
0 commit comments