Skip to content
rehype-code-group

rehype-code-group · Rehype plugin

Code tabs that belong in your docs.

Accessible code and content tabs for the unified ecosystem.

Turn neighboring code blocks—or arbitrary HTML content—into an accessible tab interface without coupling to a syntax highlighter or frontend framework.

Install your way

npm install rehype-code-group
pnpm add rehype-code-group
yarn add rehype-code-group
bun add rehype-code-group

One package. Any documentation stack.

Used in the wild16k

downloads in the last 30 days

ARIA tabs

Keyboard navigation built in

Accessible
MIT licensed

Open source and production-ready

Permissive