Open in CodeSandbox function! #728
Unanswered
victorkardel
asked this question in
Q&A
Replies: 1 comment
-
Hey, welcome! Sure you can: import {
SandpackCodeEditor,
SandpackPreview,
SandpackProvider,
UnstyledOpenInCodeSandboxButton
} from "@codesandbox/sandpack-react";
export default function App() {
return (
<SandpackProvider>
<SandpackCodeEditor />
<SandpackPreview
showOpenInCodeSandbox={false}
actionsChildren={
<UnstyledOpenInCodeSandboxButton>
My button
</UnstyledOpenInCodeSandboxButton>
}
/>
</SandpackProvider>
);
} https://codesandbox.io/s/fervent-satoshi-2bmuge?file=/src/App.tsx |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey guys it's possible to have my own button to open in codesandbox?
Sorry I'm really new at sandpack not sure if we already have an hook to do this.
Beta Was this translation helpful? Give feedback.
All reactions