StackBlitz
Less than 1 minute
Embed StackBlitz demo in Markdown files.
Demo
A StackBlitz project
<StackBlitz id="vuepress-theme-hope" />A StackBlitz project with custom settings
<StackBlitz id="vuepress-theme-hope" hideExplorer hideNavigation hideDevtools />Options
idRequired
stringStackBlitz id.
type
"project" | "github"Default
"project"Type of StackBlitz project.
width
string | numberDefault
100%Stackblitz component width.
height
string | numberStackblitz component height.
ratio
numberDefault
16 / 9Stackblitz component ratio, only valid when height is not set.
file
string[] | stringThe default file to have open in the editor.
initialPath
stringThe initial URL path the preview should open.
embed
booleanEmbed the StackBlitz editor instead of displaying a button.
load
booleanWhether to load the embed demo directly. Only available with embed.
theme
"dark" | "light"Default
"dark"Editor theme. Only available with embed.
text
stringDefault
"Open in StackBlitz"Text to display on the button. Only available without embed.
view
"default" | "editor" | "preview"Default
"preview"Which view to open by default.
hideExplorer
booleanHide the file explorer panel in the embed view.
booleanHide the navigation panel in the embed view.
hideDevtools
booleanHide the debugging console in the editor preview.
Changelog
9/28/26, 12:45 PM
View All Changelog
0c1aa-on1bd5f-on0f844-on757fd-on43072-on737eb-on93657-onab41c-one835b-onb8835-onc7061-on0b6f3-one2bb6-on3dac6-onf732e-on