DocsKitalpha

Code

Code component

Install

See installation.

ExamplesTry them in the Playground

content.mdx
```js
function lorem(ipsum) {
return ipsum
}
```
preview
function lorem(ipsum) {
return ipsum
}

With title:

content.mdx
```js index.js
function lorem(ipsum) {
return ipsum
}
```
preview
index.js
function lorem(ipsum) {
return ipsum
}

With copy button:

content.mdx
```js index.js -c
function lorem(ipsum) {
return ipsum
}
```
preview
index.js
function lorem(ipsum) {
return ipsum
}