---
title: "Playground"
canonical_url: "https://nnsvn.me/products/nuxt-starter-kit/components/docs/playground"
---

> Index of every page on this site: [llms.txt](https://nnsvn.me/llms.txt)

## Usage

### Stackblitz

<ct-stack>
<div className="p-4">
<ct-playground branch="v3" file="app.vue" provider="stackblitz" repo="nuxt/starter">



</ct-playground>
</div>

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

</ct-stack>

### CodeSandbox

<ct-stack>
<div className="p-4">
<ct-playground branch="v3" file="app.vue" provider="codesandbox" repo="nuxt/starter">



</ct-playground>
</div>

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

</ct-stack>

## Props

<ct-field-group>
<ct-field name="provider" type="'stackblitz' | 'codesandbox'">

Provider to use

</ct-field>

<ct-field name="repo" type="string">

GitHub repository name (e.g. `nuxt/starter`)

</ct-field>

<ct-field name="branch" type="string" default-value="main">

Branch name

</ct-field>

<ct-field name="id" type="string">

Repository ID (e.g. for Stackblitz `github-t1vjvm`, for Codesandbox `8hq5qn`)

<ct-alert icon="lucide:info" type="info">

You need to provide either `repo` or `id` prop, but not both.

</ct-alert>
</ct-field>
</ct-field-group>

<ct-field name="dir" type="string" default-value="''">

Directory to open in the playground (optional)

</ct-field>

<ct-field name="file" type="string">

File path to open

</ct-field>

<ct-field name="title" type="string" default-value="Playground">

Title of the iframe

</ct-field>

::

## Sitemap

See the full [sitemap](https://nnsvn.me/sitemap.md) for all pages.
