diff --git a/apps/docs/react/hooks/use-draggable.mdx b/apps/docs/react/hooks/use-draggable.mdx
index b6146dbf..0c5a40ce 100644
--- a/apps/docs/react/hooks/use-draggable.mdx
+++ b/apps/docs/react/hooks/use-draggable.mdx
@@ -7,17 +7,13 @@ icon: 'bullseye-pointer'
import {Story} from '/snippets/story.mdx';
import {CodeSandbox} from '/snippets/code.mdx';
-
-
-## Usage
-
-The `useDraggable` hook requires an `id` and accepts all the same options as the `Draggable` class. Refer to the [Input](#input) section below for more information.
-
+}} height={220} previewHeight={200} hero />
+
+The `useDraggable` hook requires an `id` and accepts all the same options as the `Draggable` class. Refer to the [Input](#input) section below for more information.
## API Reference
diff --git a/apps/docs/sandpack.js b/apps/docs/sandpack.js
index 42c226a5..03d84b2e 100644
--- a/apps/docs/sandpack.js
+++ b/apps/docs/sandpack.js
@@ -70,22 +70,6 @@ class SandpackElement extends HTMLElement {
files = JSON.parse(this.getAttribute("files"));
} catch {}
- const styles = files['styles.css'];
- const backgroundColor = document.documentElement.classList.contains('dark')
- ? '#11131b'
- : '#fafafd';
-
- if (styles) {
- const background = \`html {background-color: \${backgroundColor};}\`;
-
- files['styles.css'] = typeof styles == 'string' ? {
- code: \`\${background} \${styles}\`,
- } : {
- ...styles,
- code: \`\${background} \${styles.code}\`,
- };
- }
-
const sandpackComponent = React.createElement(Sandpack, {
files,
template: "react",
@@ -107,7 +91,7 @@ class SandpackElement extends HTMLElement {
}
customElements.define("code-sandbox", SandpackElement);
-`.replace(/\n/g, ' ');
+`;
script.type = 'module';
script.innerText = code;
diff --git a/apps/docs/snippets/code.mdx b/apps/docs/snippets/code.mdx
index 05834db6..e8830b22 100644
--- a/apps/docs/snippets/code.mdx
+++ b/apps/docs/snippets/code.mdx
@@ -1,9 +1,9 @@
-export const CodeSandbox = ({ files, height, previewHeight, showTabs }) => {
+export const CodeSandbox = ({ files, height, previewHeight, showTabs, hero }) => {
const Element = 'code-sandbox';
return (