View Sourceimport { Playground } from 'components'

Playground

The Playground component is responsible for rendering the playground inside MDX content. By default, it uses an inline layout.

Props

Playground

View Source

code

React.ReactNode

Children of the code element used to display highlighted code.

codeString

string

A code string compiled by the `useCompiledCode` hook and rendered as the preview.

compiledCodeString

string

A compiled code string rendered as the preview.

Examples