Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add CodeSandbox to a demo block #144

Open
leijuns opened this issue Jun 20, 2023 · 1 comment
Open

How to add CodeSandbox to a demo block #144

leijuns opened this issue Jun 20, 2023 · 1 comment

Comments

@leijuns
Copy link

leijuns commented Jun 20, 2023

I want to add the ability to jump to the CodeSandbox editor in the toolbar of the Demo Block, but right now there are only icons for expanding and collapsing the code. How can I add this feature?

@csr632
Copy link
Member

csr632 commented Jun 20, 2023

It is currently not supported, but it is a nice feature and we should implement it! I can work on it when I have time this month.
Contribution is also welcome. This feature should start with changing https://github.com/vitejs/vite-plugin-react-pages/blob/main/packages/theme-doc/src/Layout/Demo/index.tsx . Look contributing.md in this repo for more detailed instruction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants