<CodeGroup>. Use <CodeBlock> when code comes from an MDX component.
Usage
<CodeBlock> also accepts icon, highlight, focus, wrap, and expandable.
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
Show code examples in tabs
<CodeGroup>. Use <CodeBlock> when code comes from an MDX component.
<CodeGroup>
```js JavaScript
console.log("hello")
```
```py Python
print("hello")
```
</CodeGroup>
<CodeBlock language="ts" filename="index.ts" lines>
{"const ready = true"}
</CodeBlock>
<CodeBlock> also accepts icon, highlight, focus, wrap, and expandable.
console.log("hello")
print("hello")
Was this page helpful?