The `Embed` component is used to embed **GitHub Gist**, **CodeSandbox**, **CodePen** or others in your content.  Set the `src` attribute to the **target platform URL** to start the embedding.


## Embedding a GitHub Gist

<Embed src="https://gist.github.com/octocat/6cad326836d38bd3a7ae" />

**Code Example:**

```markdown
<Embed src="https://gist.github.com/octocat/6cad326836d38bd3a7ae" />

```

## Embedding a CodeSandbox

<Embed src="https://codesandbox.io/embed/new" />

**Code Example:**

```markdown
<Embed src="https://codesandbox.io/embed/new" />
```



## Embedding a CodePen

<Embed src="https://codepen.io/{username}/pen/{pen_id}" />


**Code Example:**

```markdown
<Embed src="https://codepen.io/{username}/pen/{pen_id}" />
```




## Configuration options

<Field name="src" type="string" required>
the item url of the target platform
</Field>