Skip to content

ButterIX v1 is out: versions, multiple languages, Ask AI, and a per-site MCP server, all built in. →

Code group

<CodeGroup> (aliases <CodeBlocks>, <CodeTabs>) groups code blocks into tabs; the chosen language syncs site-wide.

A tab group of multiple code blocks (aliases <CodeBlocks>, <CodeTabs>). Each code block's title becomes its tab label; the language a reader picks is synced across the site and remembered.

<CodeGroup>
```bash npm
npm install -g bitidocs
```

```bash pnpm
pnpm add -g bitidocs
```
</CodeGroup>
npm install -g bitidocs

<CodeGroup> has no props. The sync key defaults to the code block's language; use for="…" in the fence meta to define a custom sync group.