Code Group
Use CodeGroup when readers need to compare multiple variants of the same code.
Structure
Wrap related code blocks in one CodeGroup
Each fenced code block becomes a tab.
Use clear tab labels with title
Tab labels come from each code block’s title metadata.
Common patterns
Compare package managers
Compare languages
Props
CodeGroup is a layout container and currently does not accept props.