Playground

Usage

Stackblitz

::playground
---
provider: stackblitz
repo: nuxt/starter
branch: v3
file: app.vue
---
::

CodeSandbox

::playground
---
provider: codesandbox
repo: nuxt/starter
branch: v3
file: app.vue
---
::

Props

provider'stackblitz' | 'codesandbox'
Provider to use
repostring
GitHub repository name (e.g. nuxt/starter)
branchstring
main
Branch name
idstring
Repository ID (e.g. for Stackblitz github-t1vjvm, for Codesandbox 8hq5qn)
dirstring
''
Directory to open in the playground (optional)
filestring
File path to open
titlestring
Playground
Title of the iframe