>=17
Use sandpack-vue3 in vitepress as directive.
Home Page: https://vitepress-sandbox.js-bridge.com
License: MIT License
>=17
Hi @jerrywu001 !
Thanks for this great plugin.
I want to use a custom layout for Sandpack. In my case, I want to display the editor above the results, instead of the default side-by-side. Is this possible with vitepress-plugin-sandpack
?
Hi, thank you for this library.
How can we import local dependencies similar to what we have here:
https://sandpack.codesandbox.io/docs/guides/local-dependencies
similar to the below:
import designSystemRaw from "../design-system/build-sandpack?raw";
<Sandpack
files={{
"/App.tsx": `import { Button, Tag } from "@internals/ds";
export default function Sample() {
return (
<>
<Button type="primary">Button1</Button>
<Button type="secondary">Button2</Button>
<Tag>Tag</Tag>
</>
);
}
`,
"/node_modules/@internals/design-system/package.json": {
hidden: true,
code: JSON.stringify({
name: "@design-system",
main: "./index.js",
}),
},
"/node_modules/@internals/design-system/index.js": {
hidden: true,
code: designSystemRaw,
},
}}
template="react-vite"
/>
May I ask if it is possible to load a local JS file for display? If so, how can I use this feature?
开发dev环境和build环境表现不一致问题
今天构建突然发现构建后显示异常,请问一下是什么问题?线上构建地址可以访问 https://npm.futurefab.cn/xchart/example.html
build后产物表现为有部分sandbox显示错位,nav重复
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.